LampArray.IsConnected Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
bool
True if the LampArray is connected; otherwise, false.
Examples
Demonstrates how to control RGB lighting of peripheral devices using the Windows.Devices.Lights and Windows.Devices.Lights.Effects APIs.
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.