LampArray.FromIdAsync(String) Method

Definition

Retrieves a LampArray object asynchronously for the LampArray device that has the specified plug and play (PnP) device identifier/device instance path.

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)

Parameters

deviceId
String

Platform::String

winrt::hstring

The device identifier/device instance path of the device. To obtain the value, get the DeviceInformation.Id property value retrieved from DeviceWatcher

Returns

Returns an IAsyncOperation(LampArray) object that returns the results of the operation.

Use DeviceWatcher to determine the device identifer.

Attributes

Examples

LampArray sample

Demonstrates how to control RGB lighting of peripheral devices using the Windows.Devices.Lights and Windows.Devices.Lights.Effects APIs.

AutoRGB Sample

Demonstrates how to extract a single, representative color from a desktop screen and use it to illuminate LED lamps on a connected RGB device.

Applies to

See also