DeviceChannelList Class¶
Namespace: id3.Devices
Definition¶
Manages a collection of device channel configurations, encapsulating a list of DeviceChannel objects.
This class facilitates operations on groups of channels, such as enumeration, searching, and manipulation, making it easier to handle complex device configurations that involve multiple channels.
It extends generic list functionalities specifically for DeviceChannel objects, providing a tailored interface for channel management.
class DeviceChannelList
class DeviceChannelList implements Finalizable
public partial class DeviceChannelList
public class DeviceChannelList implements AutoCloseable, Serializable
typedef struct id3DevicesDeviceChannelList *ID3_DEVICES_DEVICE_CHANNEL_LIST;
Usage¶
deviceChannelListInstance = DeviceChannelList()
# ...
Explicit destruction
# ...
del deviceChannelListInstance
final deviceChannelListInstance = sdk.DeviceChannelList();
// ...
Explicit destruction
// ...
deviceChannelListInstance.dispose()
using (var deviceChannelListInstance = new DeviceChannelList())
{
// ...
}
Explicit destruction
var deviceChannelListInstance = new DeviceChannelList()
// ...
deviceChannelListInstance.Dispose()
try (DeviceChannelList deviceChannelListInstance = new DeviceChannelList()) {
// ...
}
Explicit destruction
DeviceChannelList deviceChannelListInstance = new DeviceChannelList();
// ...
deviceChannelListInstance.close();
ID3_DEVICES_DEVICE_CHANNEL_LIST hDeviceChannelList{};
int err = id3DevicesDeviceChannelList_Initialize(&hDeviceChannelList);
if (err == ID3_SUCCESS) {
// ...
id3DevicesDeviceChannelList_Dispose(&hDeviceChannelList);
}
Properties¶
Name |
Type |
Description |
---|---|---|
int |
Gets the number of elements contained in the list |
|
operator [int index] |
Gets or sets the element at the specified index in the list. |
Iteration¶
This class supports iteration in Dart, C#, Java and Python.
Methods¶
Name |
Description |
---|---|
Adds an item to the DeviceChannelList object. |
|
Clears the DeviceChannelList object. |
|
Gets an item of the DeviceChannelList object. |
|
Gets the number of elements in the DeviceChannelList object. |
|
Removes an element of the DeviceChannelList object. |
|
DeviceChannelList object. |
|
Sets an item of the DeviceChannelList object. |