RemoteSystemSession.Disconnected 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.
Raised when this device has been disconnected from this remote session.
// Register
event_token Disconnected(TypedEventHandler<RemoteSystemSession, RemoteSystemSessionDisconnectedEventArgs const&> const& handler) const;
// Revoke with event_token
void Disconnected(event_token const* cookie) const;
// Revoke with event_revoker
RemoteSystemSession::Disconnected_revoker Disconnected(auto_revoke_t, TypedEventHandler<RemoteSystemSession, RemoteSystemSessionDisconnectedEventArgs const&> const& handler) const;
public event TypedEventHandler<RemoteSystemSession,RemoteSystemSessionDisconnectedEventArgs> Disconnected;
function onDisconnected(eventArgs) { /* Your code */ }
remoteSystemSession.addEventListener("disconnected", onDisconnected);
remoteSystemSession.removeEventListener("disconnected", onDisconnected);
- or -
remoteSystemSession.ondisconnected = onDisconnected;
Public Custom Event Disconnected As TypedEventHandler(Of RemoteSystemSession, RemoteSystemSessionDisconnectedEventArgs)
Event Type
Windows requirements
App capabilities |
remoteSystem
|