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.

Применяется к