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 と比較して、デバイスが使用できなくなった場合に通知を受け取ります。

適用対象