Remove(DeviceToSynchronize)
- Updated2025-10-07
- 1 minute(s) read
Removes the first occurrence of the specified device.
Syntax
Namespace: NationalInstruments.ModularInstruments.SystemServices.TimingServices
public void Remove(DeviceToSynchronize device)
Remarks
The list elements after the removed element shift up to occupy the vacated spot. Because the list elements are indexed, the indexes of the shifted elements are also updated.
Parameters
| Name | Type | Description |
|---|---|---|
| device | DeviceToSynchronize | Device to remove from the collection. |
Exceptions
| Type | Description |
|---|---|
| System.ArgumentNullException | device value is null. |
| System.ArgumentException | device is already present in the collection. |