RemoteSystemWatcher.ErrorOccurred 이벤트

정의

이 이벤트는 검색 중에 오류가 발생할 때 발생합니다. 가능한 경우 검색 프로세스가 계속됩니다. 예를 들어 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 열거형을 참조하세요.

적용 대상