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 指定的所有类别时,才会引发此事件。

适用于