LampArray.FromIdAsync(String) メソッド

定義

指定したプラグ アンド プレイ (PnP) デバイス識別子/デバイス インスタンス パスを持つ LampArray デバイスの LampArray オブジェクトを非同期的に取得します。

public:
 static IAsyncOperation<LampArray ^> ^ FromIdAsync(Platform::String ^ deviceId);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<LampArray> FromIdAsync(winrt::hstring const& deviceId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<LampArray> FromIdAsync(string deviceId);
function fromIdAsync(deviceId)
Public Shared Function FromIdAsync (deviceId As String) As IAsyncOperation(Of LampArray)

パラメーター

deviceId
String

Platform::String

winrt::hstring

デバイスのデバイス識別子/デバイス インスタンス パス。 値を取得するには、DeviceWatcher から取得した DeviceInformation.Id プロパティ値を取得します

戻り値

操作の結果を IAsyncOperation(LampArray) 返す オブジェクトを返します。

DeviceWatcher を使用して、デバイス identifer を確認します。

属性

LampArray サンプル

Windows.Devices.Lights API と Windows.Devices.Lights.Effects API を使用して周辺機器の RGB 照明を制御する方法を示します。

AutoRGB サンプル

デスクトップ画面から 1 つの代表的な色を抽出し、それを使用して、接続された RGB デバイス上の LED ランプを点灯させる方法を示します。

適用対象

こちらもご覧ください