GameList.GameAdded Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates that a new GameListEntry has been added to the 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
Event Type
Windows requirements
App capabilities |
gameList
|
Remarks
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.