Share via


RemoteAutomationClientSession.Disconnected Event

Definition

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.

Applies to

See also