GameService class

Applies to Windows Phone only

Provides access to the game service.

Syntax


public static class GameService

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

Members

The GameService class has these types of members:

Methods

The GameService class has these methods. It also inherits methods from the Object class.

MethodDescription
GetAuthenticationStatus Gets the last authentication result from the game service.
GetGamerProfileAsync Retrieves the gamer profile for the current user.
GetInstalledGameItemsAsync Retrieves the currently installed game items.
GetPartnerTokenAsync Retrieves the partner token for the specified Uri.
GetPrivilegesAsync Retrieves the privilege string for the current user.
GrantAchievement Grants the specified achievement to the current user.
GrantAvatarAward Grants the specified avatar award to the current user.
NotifyPartnerTokenExpired Invalidate the cached partner token for the specified Uri.
PostResult Terminate and post the results of a game.

 

Properties

The GameService class has these properties.

PropertyAccess typeDescription

ServiceUri

Read-onlyGets the Uri of the game service.

 

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.

Requirements

Minimum supported client

None supported [Windows Store apps only]

Minimum supported server

None supported [Windows Store apps only]

Minimum supported phone

Windows Phone 8

Namespace

Windows.Phone.System.UserProfile.GameServices.Core
Windows::Phone::System::UserProfile::GameServices::Core [C++]

Metadata

Windows.winmd

See also

Object

 

 

Community Additions

ADD
Show:
© 2014 Microsoft