RemoteAutomationClientSession.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.
Occurs when the RemoteAutomationClientSession is disconnected.
// Register
event_token Disconnected(TypedEventHandler<RemoteAutomationClientSession, RemoteAutomationDisconnectedEventArgs const&> const& handler) const;
// Revoke with event_token
void Disconnected(event_token const* cookie) const;
// Revoke with event_revoker
RemoteAutomationClientSession::Disconnected_revoker Disconnected(auto_revoke_t, TypedEventHandler<RemoteAutomationClientSession, RemoteAutomationDisconnectedEventArgs const&> const& handler) const;
public event TypedEventHandler<RemoteAutomationClientSession,RemoteAutomationDisconnectedEventArgs> Disconnected;
function onDisconnected(eventArgs) { /* Your code */ }
remoteAutomationClientSession.addEventListener("disconnected", onDisconnected);
remoteAutomationClientSession.removeEventListener("disconnected", onDisconnected);
- or -
remoteAutomationClientSession.ondisconnected = onDisconnected;
Public Custom Event Disconnected As TypedEventHandler(Of RemoteAutomationClientSession, RemoteAutomationDisconnectedEventArgs)
Event Type
Remarks
Enables a host app to register a callback that is invoked when a connection to a remote provider (sharing a named pipe) is to be closed.