CaptureCollection.ICollection.CopyTo(Array, Int32) CaptureCollection.ICollection.CopyTo(Array, Int32) Method

Definition

Copies all the elements of the collection to the given array beginning at the given index.

 virtual void System.Collections.ICollection.CopyTo(Array ^ array, int arrayIndex) = System::Collections::ICollection::CopyTo;
void ICollection.CopyTo (Array array, int arrayIndex);

Parameters

array
Array Array

The one-dimensional array the collection is to be copied into.

arrayIndex
Int32 Int32

The zero-based index in the destination array where copying is to begin.

Implements

Exceptions

arrayIndex is outside the bounds of array.-or-arrayIndex plus Count is outside the bounds of array.

Applies to