RemoteDesktopConnectionRemoteInfo.SwitchToLocalSessionRequested É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.
Déclenché dans le service hôte bureau à distance lorsque l’utilisateur demande à basculer vers le bureau local.
// Register
event_token SwitchToLocalSessionRequested(TypedEventHandler<RemoteDesktopConnectionRemoteInfo, IInspectable const&> const& handler) const;
// Revoke with event_token
void SwitchToLocalSessionRequested(event_token const* cookie) const;
// Revoke with event_revoker
RemoteDesktopConnectionRemoteInfo::SwitchToLocalSessionRequested_revoker SwitchToLocalSessionRequested(auto_revoke_t, TypedEventHandler<RemoteDesktopConnectionRemoteInfo, IInspectable const&> const& handler) const;
public event TypedEventHandler<RemoteDesktopConnectionRemoteInfo,object> SwitchToLocalSessionRequested;
function onSwitchToLocalSessionRequested(eventArgs) { /* Your code */ }
remoteDesktopConnectionRemoteInfo.addEventListener("switchtolocalsessionrequested", onSwitchToLocalSessionRequested);
remoteDesktopConnectionRemoteInfo.removeEventListener("switchtolocalsessionrequested", onSwitchToLocalSessionRequested);
- or -
remoteDesktopConnectionRemoteInfo.onswitchtolocalsessionrequested = onSwitchToLocalSessionRequested;
Public Custom Event SwitchToLocalSessionRequested As TypedEventHandler(Of RemoteDesktopConnectionRemoteInfo, Object)
Type d'événement
TypedEventHandler<RemoteDesktopConnectionRemoteInfo,IInspectable>