ReservationCollection.CopyTo(Int64[], Int32) Method

Definition

Copies the entire collection to a one-dimensional array, starting at the specified index of the target array. This method cannot be inherited.

C#
public void CopyTo(long[] array, int arrayIndex);

Parameters

array
Int64[]

The array that is the destination of the copy.

arrayIndex
Int32

The zero-based index in the array at which copying begins.

Implements

Exceptions

array or arrayIndex is null.

arrayIndex is less than zero, or greater than or equal to the length of array.

There is not enough space in the specified array to copy the data.

-or-

array is not a single dimensional array, which is the only type supported for the requested action.

The method was called after the sequence has been disposed of.

There is not enough memory to continue the execution of the program.

Access for the specified log store is denied by the operating system.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1