AppServiceConnection.RequestReceived É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’un message arrive de l’autre point de terminaison de la connexion app service.
// Register
event_token RequestReceived(TypedEventHandler<AppServiceConnection, AppServiceRequestReceivedEventArgs const&> const& handler) const;
// Revoke with event_token
void RequestReceived(event_token const* cookie) const;
// Revoke with event_revoker
AppServiceConnection::RequestReceived_revoker RequestReceived(auto_revoke_t, TypedEventHandler<AppServiceConnection, AppServiceRequestReceivedEventArgs const&> const& handler) const;
public event TypedEventHandler<AppServiceConnection,AppServiceRequestReceivedEventArgs> RequestReceived;
function onRequestReceived(eventArgs) { /* Your code */ }
appServiceConnection.addEventListener("requestreceived", onRequestReceived);
appServiceConnection.removeEventListener("requestreceived", onRequestReceived);
- or -
appServiceConnection.onrequestreceived = onRequestReceived;
Public Custom Event RequestReceived As TypedEventHandler(Of AppServiceConnection, AppServiceRequestReceivedEventArgs)
Type d'événement
Exemples
Consultez les exemples de code dans Créer et consommer un service d’application.