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

NameTypeDescription
destinationArrayDeviceToSynchronize[]

Destination array for the collection.

indexint

Index in the target array at which you want to begin copying the collection to.

Exceptions

TypeDescription
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.