RemoteAutomationClientSession.ConnectionRequested 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
请求连接到远程系统时发生。
// 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)
事件类型
注解
使主机应用能够注册在需要与远程提供程序的连接 (共享命名管道) 时调用的回调。