RemoteSystemWatcher 클래스

정의

원격 시스템 검색과 관련된 활동을 감시하고 적절한 이벤트를 발생합니다.

public ref class RemoteSystemWatcher sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class RemoteSystemWatcher final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class RemoteSystemWatcher
Public NotInheritable Class RemoteSystemWatcher
상속
Object Platform::Object IInspectable RemoteSystemWatcher
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 Anniversary Edition (10.0.14393.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v3.0에서 도입되었습니다.)
앱 기능
remoteSystem

설명

이 클래스는 정적 메서드 CreateWatcher 가 호출될 때 인스턴스화됩니다. 이 클래스의 개체는 Start 메서드가 호출되고 Stop이 호출될 때, 앱이 종료되거나 시스템에 의해 일시 중단될 때 또는 오류가 발생하는 경우 중지 할 때 활동을 감시하기 시작합니다.

중요

이 클래스를 인스턴스화하기 전에 RemoteSystem.RequestAccessAsync 를 호출하여 원격 시스템 플랫폼에 대한 액세스를 확인해야 합니다.

버전 기록

Windows 버전 SDK 버전 추가된 값
1803 17134 EnumerationCompleted
1803 17134 ErrorOccurred
1903 18362 사용자

속성

User

RemoteSystemWatcher에서 디바이스를 보려는 사용자를 나타냅니다.

메서드

Start()

검색 가능한 원격 시스템을 감시하기 시작합니다. 검색 프로세스는 Stop 메서드가 호출되거나 오류가 발생할 때까지 실행됩니다. RemoteSystemWatcher 개체는 나중에 Start 메서드를 다시 호출할 수 있습니다.

Stop()

검색 가능한 원격 시스템 감시를 중지합니다.

이벤트

EnumerationCompleted

이 이벤트는 초기 원격 시스템 검색 프로세스가 완료될 때 발생합니다.

ErrorOccurred

이 이벤트는 검색 중에 오류가 발생할 때 발생합니다. 가능한 경우 검색 프로세스가 계속됩니다. 예를 들어 RemoteSystemWatcherError.InternetNotAvailable 값으로 오류가 발생하는 경우( RemoteSystemWatcherError 참조) 오류가 클라우드 검색에만 적용되므로 프록시 검색이 계속됩니다( RemoteSystemDiscoveryType 참조).

RemoteSystemAdded

새 원격 시스템(디바이스)이 검색될 때 발생하는 이벤트입니다.

RemoteSystemRemoved

이전에 검색된 원격 시스템(디바이스)이 더 이상 표시되지 않을 때 발생하는 이벤트입니다.

RemoteSystemUpdated

이 검색 세션에서 이전에 검색된 원격 시스템(디바이스)이 프록시로 연결된 클라우드 연결에서 변경되거나 반대로 변경될 때 발생합니다. 원격 시스템이 모니터링되는 속성 중 하나를 변경할 때도 발생 합니다(RemoteSystem 클래스의 속성 참조).

적용 대상

추가 정보