GameList.GameRemoved 事件

定义

public:
 static event GameListRemovedEventHandler ^ GameRemoved;
// Register
static event_token GameRemoved(GameListRemovedEventHandler const& handler) const;

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

// Revoke with event_revoker
static GameList::GameRemoved_revoker GameRemoved(auto_revoke_t, GameListRemovedEventHandler const& handler) const;
public static event GameListRemovedEventHandler GameRemoved;
function onGameRemoved(eventArgs) { /* Your code */ }
Windows.Gaming.Preview.GamesEnumeration.GameList.addEventListener("gameremoved", onGameRemoved);
Windows.Gaming.Preview.GamesEnumeration.GameList.removeEventListener("gameremoved", onGameRemoved);
- or -
Windows.Gaming.Preview.GamesEnumeration.GameList.ongameremoved = onGameRemoved;
Public Shared Custom Event GameRemoved As GameListRemovedEventHandler 

事件类型

Windows 要求

应用功能
gameList

注解

此 API 并非适用于所有应用。 除非你的开发人员帐户由 Microsoft 专门预配,否则对这些 API 的调用将在运行时失败。

适用于