GameList.GameAdded イベント
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
新しい 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 の呼び出しは実行時に失敗します。