Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GameService class

Provides access to the game service.

Syntax


public ref class GameService abstract sealed 

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 (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 (operating system)

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

Show:
© 2015 Microsoft