Share via


GameService Classe

Définition

Fournit l’accès au service de jeu.

public ref class GameService abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GameService final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class GameService
Public Class GameService
Héritage
Object Platform::Object IInspectable GameService
Attributs

Configuration requise pour Windows

Famille d’appareils
Windows Mobile Extension SDK (introduit dans 10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduit dans v1.0)

Remarques

Tous les membres de l’espace de noms Windows.Phone.System.UserProfile.GameServices.Core ne peuvent être utilisés que par le Kit de développement logiciel (SDK) Live XBox. Ces API ne peuvent pas être appelées, sauf par les applications qui ont la fonctionnalité ID_CAP_GAMERSERVICES.

Propriétés

ServiceUri

Obtient l’URI du service de jeu.

Méthodes

GetAuthenticationStatus()

Obtient le dernier résultat d’authentification du service de jeu.

GetGamerProfileAsync()

Récupère le profil du joueur pour l’utilisateur actuel.

GetInstalledGameItemsAsync()

Récupère les éléments de jeu actuellement installés.

GetPartnerTokenAsync(Uri)

Récupère le jeton partenaire pour l’URI spécifié.

GetPrivilegesAsync()

Récupère la chaîne de privilèges pour l’utilisateur actuel.

GrantAchievement(UInt32)

Octroie la réalisation spécifiée à l’utilisateur actuel.

GrantAvatarAward(UInt32)

Octroie le prix d’avatar spécifié à l’utilisateur actuel.

NotifyPartnerTokenExpired(Uri)

Invalider le jeton de partenaire mis en cache pour l’URI spécifié.

PostResult(UInt32, GameServiceScoreKind, Int64, GameServiceGameOutcome, IBuffer)

Terminez et publiez les résultats d’un jeu.

S’applique à