RemoteSystemWatcher.ErrorOccurred Kejadian

Definisi

Kejadian ini dimunculkan ketika terjadi kesalahan selama penemuan. Proses penemuan akan berlanjut jika memungkinkan. Misalnya, jika kesalahan terjadi dengan nilai RemoteSystemWatcherError.InternetNotAvailable (lihat RemoteSystemWatcherError), penemuan proksimal akan berlanjut karena kesalahan hanya berlaku untuk penemuan cloud (lihat RemoteSystemDiscoveryType).

// Register
event_token ErrorOccurred(TypedEventHandler<RemoteSystemWatcher, RemoteSystemWatcherErrorOccurredEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
RemoteSystemWatcher::ErrorOccurred_revoker ErrorOccurred(auto_revoke_t, TypedEventHandler<RemoteSystemWatcher, RemoteSystemWatcherErrorOccurredEventArgs const&> const& handler) const;
public event TypedEventHandler<RemoteSystemWatcher,RemoteSystemWatcherErrorOccurredEventArgs> ErrorOccurred;
function onErrorOccurred(eventArgs) { /* Your code */ }
remoteSystemWatcher.addEventListener("erroroccurred", onErrorOccurred);
remoteSystemWatcher.removeEventListener("erroroccurred", onErrorOccurred);
- or -
remoteSystemWatcher.onerroroccurred = onErrorOccurred;
Public Custom Event ErrorOccurred As TypedEventHandler(Of RemoteSystemWatcher, RemoteSystemWatcherErrorOccurredEventArgs) 

Jenis Acara

Persyaratan Windows

Rangkaian perangkat
Windows 10, version 1803 (diperkenalkan dalam 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v6.0)

Keterangan

Pendengar untuk kejadian ini harus memberi tahu pengguna tentang jenis kesalahan yang ditemui. Lihat enum RemoteSystemWatcherError untuk detailnya.

Berlaku untuk