共用方式為


RemoteAutomationClientSession.Disconnected 事件

定義

發生于 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) 

事件類型

備註

可讓主機應用程式註冊回呼,當遠端提供者的連線 (共用具名管道) 將會關閉時叫用的回呼。

適用於

另請參閱