DeviceParameterList Class

Namespace: id3.Devices

Definition

Designed to hold and manage a collection of DeviceParameter objects, this class allows for the aggregation, manipulation, and query of device parameters.
It supports operations beyond simple list management, including the ability to find parameters based on specific criteria such as integer values, thereby facilitating efficient parameter management in complex device configurations.
class DeviceParameterList
class DeviceParameterList implements Finalizable
public partial class DeviceParameterList
public class DeviceParameterList implements AutoCloseable, Serializable
typedef struct id3DevicesDeviceParameterList *ID3_DEVICES_DEVICE_PARAMETER_LIST;

Usage

deviceParameterListInstance = DeviceParameterList()
# ...

Explicit destruction

# ...
del deviceParameterListInstance
final deviceParameterListInstance = sdk.DeviceParameterList();
// ...

Explicit destruction

// ...
deviceParameterListInstance.dispose()
using (var deviceParameterListInstance = new DeviceParameterList())
{
   // ...
}

Explicit destruction

var deviceParameterListInstance = new DeviceParameterList()
// ...
deviceParameterListInstance.Dispose()
try (DeviceParameterList deviceParameterListInstance = new DeviceParameterList()) {
// ...
}

Explicit destruction

DeviceParameterList deviceParameterListInstance = new DeviceParameterList();
// ...
deviceParameterListInstance.close();
ID3_DEVICES_DEVICE_PARAMETER_LIST hDeviceParameterList{};
int err = id3DevicesDeviceParameterList_Initialize(&hDeviceParameterList);
if (err == ID3_SUCCESS) {
    // ...
    id3DevicesDeviceParameterList_Dispose(&hDeviceParameterList);
}

Properties

Name

Type

Description

count

int

Gets the number of elements contained in the list

operator [int index]

DeviceParameter

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 DeviceParameterList object.

clear

Clears the DeviceParameterList object.

findValueInt

Searches the list for a parameter that has a specific integer value, providing a mechanism to locate parameters based on their current setting

get

Gets an item of the DeviceParameterList object.

getCount

Gets the number of elements in the DeviceParameterList object.

removeAt

Removes an element of the DeviceParameterList object.

resize

DeviceParameterList object.

set

Sets an item of the DeviceParameterList object.