RemoteAutomationClientSession.ConnectionRequested 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 a connection to a remote system is requested.
// Register
event_token ConnectionRequested(TypedEventHandler<RemoteAutomationClientSession, RemoteAutomationConnectionRequestedEventArgs const&> const& handler) const;
// Revoke with event_token
void ConnectionRequested(event_token const* cookie) const;
// Revoke with event_revoker
RemoteAutomationClientSession::ConnectionRequested_revoker ConnectionRequested(auto_revoke_t, TypedEventHandler<RemoteAutomationClientSession, RemoteAutomationConnectionRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<RemoteAutomationClientSession,RemoteAutomationConnectionRequestedEventArgs> ConnectionRequested;
function onConnectionRequested(eventArgs) { /* Your code */ }
remoteAutomationClientSession.addEventListener("connectionrequested", onConnectionRequested);
remoteAutomationClientSession.removeEventListener("connectionrequested", onConnectionRequested);
- or -
remoteAutomationClientSession.onconnectionrequested = onConnectionRequested;
Public Custom Event ConnectionRequested As TypedEventHandler(Of RemoteAutomationClientSession, RemoteAutomationConnectionRequestedEventArgs)
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 needed.