RemoteSystemWatcher.ErrorOccurred Événement

Définition

Cet événement est déclenché lorsqu’une erreur se produit lors de la découverte. Si possible, le processus de découverte se poursuit. Par exemple, si l’erreur se produit avec une valeur RemoteSystemWatcherError.InternetNotAvailable (voir RemoteSystemWatcherError), la découverte proximale continue, car l’erreur s’applique uniquement à la découverte cloud (voir 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) 

Type d'événement

Configuration requise pour Windows

Famille d’appareils
Windows 10, version 1803 (introduit dans 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v6.0)

Remarques

L’écouteur de cet événement doit informer l’utilisateur du type d’erreur rencontré. Pour plus d’informations, consultez l’énumération RemoteSystemWatcherError .

S’applique à