Share via


GameService.GrantAchievement(UInt32) Method

Definition

Grants the specified achievement to the current user.

public:
 static void GrantAchievement(unsigned int achievementId);
 static void GrantAchievement(uint32_t const& achievementId);
public static void GrantAchievement(uint achievementId);
function grantAchievement(achievementId)
Public Shared Sub GrantAchievement (achievementId As UInteger)

Parameters

achievementId
UInt32

unsigned int

uint32_t

The identifier of the achievement.

Remarks

All members of the Windows.Phone.System.UserProfile.GameServices.Core namespace can only be used by the XBox Live SDK. These APIs cannot be called except by applications that have the ID_CAP_GAMERSERVICES capability.

Applies to