Language

RemoteSystemWatcher.ErrorOccurred Event

定義

このイベントは、検出中にエラーが発生したときに発生します。 可能であれば、検出プロセスは続行されます。 たとえば、 RemoteSystemWatcherError.InternetNotAvailable ( RemoteSystemWatcherError を参照) の値でエラーが発生した場合、エラーはクラウド検出にのみ適用されるため、近位探索は続行されます ( 「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) 

イベントの種類

Windows の要件

要件 説明
デバイス ファミリ
Windows 10, version 1803 (10.0.17134.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v6.0 で導入)

注釈

このイベントのリスナーは、発生したエラーの種類をユーザーに通知する必要があります。 詳細については、 RemoteSystemWatcherError 列挙型を参照してください。

適用対象