RemoteSystemWatcher.ErrorOccurred RemoteSystemWatcher.ErrorOccurred RemoteSystemWatcher.ErrorOccurred RemoteSystemWatcher.ErrorOccurred RemoteSystemWatcher.ErrorOccurred Event

Definition

This event is raised when an error occurs during discovery. The discovery process will continue if possible. For example, if the error occurs with a value of RemoteSystemWatcherError.InternetNotAvailable (see **RemoteSystemWatcherError**), proximal discovery will continue because the error applies only to cloud discovery (see **RemoteSystemDiscoveryType**).

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

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

// Revoke with event_revoker
ErrorOccurred_revoker ErrorOccurred(auto_revoke_t, TypedEventHandler<RemoteSystemWatcher, RemoteSystemWatcherErrorOccurredEventArgs> const& handler) const;
public event TypedEventHandler<RemoteSystemWatcher, RemoteSystemWatcherErrorOccurredEventArgs> ErrorOccurred
Public Event ErrorOccurred As TypedEventHandler (Of RemoteSystemWatcher, RemoteSystemWatcherErrorOccurredEventArgs)
function onErrorOccurred(eventArgs){/* Your code */}


remoteSystemWatcher.addEventListener("erroroccurred", onErrorOccurred);
remoteSystemWatcher.removeEventListener("erroroccurred", onErrorOccurred);

Additional features and requirements

Device family
Windows 10, version 1803 (introduced v10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

Remarks

The listener for this event should notify the user of the type of error that was encountered. See the **RemoteSystemWatcherError** enum for details.