次の方法で共有


GameList.GameAdded イベント

定義

新しい GameListEntry が GameList に追加されたことを示 します

public:
 static event GameListChangedEventHandler ^ GameAdded;
// Register
static event_token GameAdded(GameListChangedEventHandler const& handler) const;

// Revoke with event_token
static void GameAdded(event_token const* cookie) const;

// Revoke with event_revoker
static GameList::GameAdded_revoker GameAdded(auto_revoke_t, GameListChangedEventHandler const& handler) const;
public static event GameListChangedEventHandler GameAdded;
function onGameAdded(eventArgs) { /* Your code */ }
Windows.Gaming.Preview.GamesEnumeration.GameList.addEventListener("gameadded", onGameAdded);
Windows.Gaming.Preview.GamesEnumeration.GameList.removeEventListener("gameadded", onGameAdded);
- or -
Windows.Gaming.Preview.GamesEnumeration.GameList.ongameadded = onGameAdded;
Public Shared Custom Event GameAdded As GameListChangedEventHandler 

イベントの種類

Windows の要件

アプリの機能
gameList

注釈

この API は、すべてのアプリで使用できるわけではありません。 開発者アカウントが Microsoft によって特別にプロビジョニングされていない限り、これらの API の呼び出しは実行時に失敗します。

適用対象