GameList.GameAdded Event


This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

 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 

Event Type


Windows requirements

App capabilities

Applies to