CopyTo(DeviceToSynchronize[], int)
- Updated2025-10-07
- 1 minute(s) read
Copies the collection to an array or a portion of an array.
Syntax
Namespace: NationalInstruments.ModularInstruments.SystemServices.TimingServices
public void CopyTo(DeviceToSynchronize[] destinationArray, int index)
Parameters
| Name | Type | Description |
|---|---|---|
| destinationArray | DeviceToSynchronize[] | Destination array for the collection. |
| index | int | Index in the target array at which you want to begin copying the collection to. |
Exceptions
| Type | Description |
|---|---|
| System.ArgumentException | destinationArray is multidimensional. -or- index is greater than or equal to the array length. -or- The number of elements in the collection is greater than the available space between index and the end of destinationArray . |
| System.ArgumentNullException | destinationArray is null. |
| System.ArgumentOutOfRangeException | index is less than zero. |