DeviceModelList Class¶
Namespace: id3.Devices
Definition¶
A container that holds a series of DeviceModel objects, providing a structured way to handle multiple device models
This list enables applications to manage a diverse range of device models, supporting functionalities like device discovery, categorization, and selection based on model-specific characteristics.
class DeviceModelList
class DeviceModelList implements Finalizable
public partial class DeviceModelList
public class DeviceModelList implements AutoCloseable, Serializable
typedef struct id3DevicesDeviceModelList *ID3_DEVICES_DEVICE_MODEL_LIST;
Usage¶
deviceModelListInstance = DeviceModelList()
# ...
Explicit destruction
# ...
del deviceModelListInstance
final deviceModelListInstance = sdk.DeviceModelList();
// ...
Explicit destruction
// ...
deviceModelListInstance.dispose()
using (var deviceModelListInstance = new DeviceModelList())
{
// ...
}
Explicit destruction
var deviceModelListInstance = new DeviceModelList()
// ...
deviceModelListInstance.Dispose()
try (DeviceModelList deviceModelListInstance = new DeviceModelList()) {
// ...
}
Explicit destruction
DeviceModelList deviceModelListInstance = new DeviceModelList();
// ...
deviceModelListInstance.close();
ID3_DEVICES_DEVICE_MODEL_LIST hDeviceModelList{};
int err = id3DevicesDeviceModelList_Initialize(&hDeviceModelList);
if (err == ID3_SUCCESS) {
// ...
id3DevicesDeviceModelList_Dispose(&hDeviceModelList);
}
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 DeviceModelList object. |
|
Clears the DeviceModelList object. |
|
Gets an item of the DeviceModelList object. |
|
Gets the number of elements in the DeviceModelList object. |
|
Removes an element of the DeviceModelList object. |
|
DeviceModelList object. |
|
Sets an item of the DeviceModelList object. |