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

count

int

Gets the number of elements contained in the list

operator [int index]

DeviceModel

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

add

Adds an item to the DeviceModelList object.

clear

Clears the DeviceModelList object.

get

Gets an item of the DeviceModelList object.

getCount

Gets the number of elements in the DeviceModelList object.

removeAt

Removes an element of the DeviceModelList object.

resize

DeviceModelList object.

set

Sets an item of the DeviceModelList object.