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