TClockSynchronizableDevicesCollection Class
- Updated2025-10-07
- 2 minute(s) read
Represents a collection of DeviceToSynchronize objects.
Derives from
- ICollection
- IList
Syntax
Namespace: NationalInstruments.ModularInstruments.SystemServices.TimingServices
public class TClockSynchronizableDevicesCollection : ICollection, IList
Remarks
The TClock object holds a TClockSynchronizableDevicesCollection. Each item in the collection is a DeviceToSynchronize object. The DeviceToSynchronize object represents an ITClockSynchronizableDevice. This ITClockSynchronizableDevice is a modular instrument that can be synchronized by TClk technology.
Thread Safety
Any members of this type are not guaranteed to be thread safe.
Constructors
| Name | Description |
|---|---|
| TClockSynchronizableDevicesCollection() | Initializes a new instance of the TClockSynchronizableDevicesCollection class. |
Properties
| Name | Description |
|---|---|
| Count | Gets the number of elements in the collection, which is equal to the number of NationalInstruments.ModularInstruments.ITClockSynchronizableDevice objects to be synchronized by TClk. |
| this[int device] | Gets the DeviceToSynchronize object at the specified index. |
| this[ITClockSynchronizableDevice device] | Gets the DeviceToSynchronize object at the specified index. |
Methods
| Name | Description |
|---|---|
| Add(DeviceToSynchronize) | Adds an item to the end of the collection. |
| Add(ITClockSynchronizableDevice) | Adds an item to the end of the collection. |
| AddRange(params ITClockSynchronizableDevice[]) | Adds an array of elements to the end of the collection. |
| AddRange(params DeviceToSynchronize[]) | Adds an array of elements to the end of the collection. |
| Clear() | Removes all items from the collection. |
| Contains(DeviceToSynchronize) | Returns whether the specified element is in the collection. |
| Contains(ITClockSynchronizableDevice) | Returns whether the specified element is in the collection. |
| CopyTo(DeviceToSynchronize[], int) | Copies the collection to an array or a portion of an array. |
| Equals(object) | Returns true if the specified object contains the same ITClockSynchronizableDevice devices as the current collection. |
| GetHashCode() | Generates a hash value that can be used to uniquely identify a particular TClockSynchronizableDevicesCollection object. |
| IndexOf(ITClockSynchronizableDevice) | Returns the zero-based index of the first occurrence of an item in the collection. |
| IndexOf(DeviceToSynchronize) | Returns the zero-based index of the first occurrence of an item in the collection. |
| Insert(int, DeviceToSynchronize) | Inserts a DeviceToSynchronize object into the collection at the specified index. |
| Insert(int, ITClockSynchronizableDevice) | Inserts a NationalInstruments.ModularInstruments.ITClockSynchronizableDevice object into the collection at the specified index. |
| Remove(DeviceToSynchronize) | Removes the first occurrence of the specified device. |
| Remove(ITClockSynchronizableDevice) | Removes the first occurrence of the specified device. |
Events
| Name | Description |
|---|---|
| CollectionChanged | Occurs when an item is added, removed, or updated. |