共用方式為


RemoteSystemWatcher.RemoteSystemRemoved 事件

定義

當先前探索到的遠端系統 (裝置) 不再顯示時所引發的事件。

// Register
event_token RemoteSystemRemoved(TypedEventHandler<RemoteSystemWatcher, RemoteSystemRemovedEventArgs const&> const& handler) const;

// Revoke with event_token
void RemoteSystemRemoved(event_token const* cookie) const;

// Revoke with event_revoker
RemoteSystemWatcher::RemoteSystemRemoved_revoker RemoteSystemRemoved(auto_revoke_t, TypedEventHandler<RemoteSystemWatcher, RemoteSystemRemovedEventArgs const&> const& handler) const;
public event TypedEventHandler<RemoteSystemWatcher,RemoteSystemRemovedEventArgs> RemoteSystemRemoved;
function onRemoteSystemRemoved(eventArgs) { /* Your code */ }
remoteSystemWatcher.addEventListener("remotesystemremoved", onRemoteSystemRemoved);
remoteSystemWatcher.removeEventListener("remotesystemremoved", onRemoteSystemRemoved);
- or -
remoteSystemWatcher.onremotesystemremoved = onRemoteSystemRemoved;
Public Custom Event RemoteSystemRemoved As TypedEventHandler(Of RemoteSystemWatcher, RemoteSystemRemovedEventArgs) 

事件類型

Windows 需求

應用程式功能
remoteSystem

備註

只有在遠端系統停止在相關聯的RemoteSystemDiscoveryTypeFilter所指定的所有類別上,才引發此事件。

適用於