Share via


Lamp.DeviceId 속성

정의

램프 디바이스의 DeviceInformation ID 를 가져옵니다.

public:
 property Platform::String ^ DeviceId { Platform::String ^ get(); };
winrt::hstring DeviceId();
public string DeviceId { get; }
var string = lamp.deviceId;
Public ReadOnly Property DeviceId As String

속성 값

String

Platform::String

winrt::hstring

램프 디바이스의 DeviceInformation ID 입니다.

설명

이 ID를 FromIdAsync 메서드에 전달하여 연결된 Lamp 개체를 검색합니다. DeviceWatcher.Removed 이벤트에 대한 처리기를 구현하고 DeviceInformationUpdate 인수의 ID를 디바이스를 사용할 수 없게 되면 알림을 받을 Lamp 개체의 ID와 비교합니다.

적용 대상