Windows Dev Center

GameService class

Provides access to the game service.

Syntax


public ref class GameService abstract sealed 

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 (Windows 10 device family)

Device family

Mobile

API contract

Windows.Phone.PhoneContract, introduced version 1.0

Namespace

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

Metadata

Windows.Phone.PhoneContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.WinMD

Attributes

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

See also

Object

 

 

Community Additions

ADD
Show:
© 2015 Microsoft