DeviceContainer

Modified on 2010/02/24 22:09 by Administrator — Categorized as: Uncategorized

This object contains information about a device and a reference to the device if it is running. Use the methods in the System Object to get a reference to device containers.


Instance Properties

IsDeviceEnabled

Gets a value indicating if the device is enabled.

Syntax:

Boolean IsDeviceEnabled

Property Value:

A value indicating if the device is enabled.

IsDeviceRunning

Gets a value indicating if the device is running.

Syntax:

Boolean IsDeviceRunning

Property Value:

A value indicating if the device is running.

DeviceDisplayName

Gets a display name of the device.

Syntax:

String DeviceDisplayName

Property Value:

The a display name of the device.

Instance Methods

GetDevice

Get the device (driver instance) associated with the device container. Attempting to retrieve a device that is not running will result in an error.

Syntax:

Device GetDevice( )

Returns:

A reference to the device.

Example:


// Get all lighting devices
devicesContainers = System.GetLightingDeviceContainers();
for (i=0; i < devicesContainers.Length; i++)
{
	device = devicesContainers[i].GetDevice();

	// ...
}