次の方法で共有


GameService クラス

定義

ゲーム サービスへのアクセスを提供します。

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
継承
Object Platform::Object IInspectable GameService
属性

Windows の要件

デバイス ファミリ
Windows Mobile Extension SDK (10.0.10240.0 で導入)
API contract
Windows.Phone.PhoneContract (v1.0 で導入)

注釈

Windows.Phone.System.UserProfile.GameServices.Core 名前空間のすべてのメンバーは、XBox Live SDKでのみ使用できます。 これらの API は、ID_CAP_GAMERSERVICES機能を持つアプリケーションを除いて呼び出すことはできません。

プロパティ

ServiceUri

ゲーム サービスの URI を取得します。

メソッド

GetAuthenticationStatus()

ゲーム サービスから最後の認証結果を取得します。

GetGamerProfileAsync()

現在のユーザーのゲーマー プロファイルを取得します。

GetInstalledGameItemsAsync()

現在インストールされているゲームアイテムを取得します。

GetPartnerTokenAsync(Uri)

指定した Uri のパートナー トークンを取得します。

GetPrivilegesAsync()

現在のユーザーの特権文字列を取得します。

GrantAchievement(UInt32)

指定したアチーブメントを現在のユーザーに付与します。

GrantAvatarAward(UInt32)

現在のユーザーに指定されたアバター賞を付与します。

NotifyPartnerTokenExpired(Uri)

指定した URI のキャッシュされたパートナー トークンを無効にします。

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

ゲームの結果を終了して投稿します。

適用対象