GameBarServices.CommandReceived Événement
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Se produit lorsqu’une commande de barre de jeu est reçue.
// Register
event_token CommandReceived(TypedEventHandler<GameBarServices, GameBarServicesCommandEventArgs const&> const& handler) const;
// Revoke with event_token
void CommandReceived(event_token const* cookie) const;
// Revoke with event_revoker
GameBarServices::CommandReceived_revoker CommandReceived(auto_revoke_t, TypedEventHandler<GameBarServices, GameBarServicesCommandEventArgs const&> const& handler) const;
public event TypedEventHandler<GameBarServices,GameBarServicesCommandEventArgs> CommandReceived;
function onCommandReceived(eventArgs) { /* Your code */ }
gameBarServices.addEventListener("commandreceived", onCommandReceived);
gameBarServices.removeEventListener("commandreceived", onCommandReceived);
- or -
gameBarServices.oncommandreceived = onCommandReceived;
Public Custom Event CommandReceived As TypedEventHandler(Of GameBarServices, GameBarServicesCommandEventArgs)
Type d'événement
Configuration requise pour Windows
Fonctionnalités de l’application |
gameBarServices
|