Επεξεργασία

Κοινή χρήση μέσω


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.

public:
 virtual void CopyTo(cli::array <long> ^ array, int arrayIndex);
public void CopyTo (long[] array, int arrayIndex);
abstract member CopyTo : int64[] * int -> unit
override this.CopyTo : int64[] * int -> unit
Public Sub CopyTo (array As Long(), arrayIndex As Integer)

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