Condividi tramite


RemoteSystemWatcher.ErrorOccurred Evento

Definizione

Questo evento viene generato quando si verifica un errore durante l'individuazione. Se possibile, il processo di individuazione continuerà. Ad esempio, se l'errore si verifica con un valore RemoteSystemWatcherError.InternetNotAvailable (vedere RemoteSystemWatcherError), l'individuazione prossima continuerà perché l'errore si applica solo a Cloud Discovery (vedere 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) 

Tipo evento

Requisiti Windows

Famiglia di dispositivi
Windows 10, version 1803 (è stato introdotto in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v6.0)

Commenti

Il listener per questo evento deve notificare all'utente il tipo di errore rilevato. Per informazioni dettagliate, vedere l'enumerazione RemoteSystemWatcherError .

Si applica a