Share via


LampArray.IsConnected Property

Definition

Gets a value indicating whether the LampArray device is connected to the system.

public:
 property bool IsConnected { bool get(); };
bool IsConnected();
public bool IsConnected { get; }
var boolean = lampArray.isConnected;
Public ReadOnly Property IsConnected As Boolean

Property Value

Boolean

bool

True if the LampArray is connected; otherwise, false.

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.

Remarks

Once disconnected, further calls to the object are null-ops and the object should be thrown away. DeviceWatcher should be used to determine if the device is reconnected, and then a new LampArray instance should be created FromIdAsync.

Applies to

See also