CaptureCollection.ICollection.CopyTo(Array, Int32) Method

Definition

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

C#
void ICollection.CopyTo(Array array, int arrayIndex);

Parameters

array
Array

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

arrayIndex
Int32

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

Implements

Exceptions

array is null.

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

Applies to

Product Versions
.NET Core 1.0, Core 1.1
.NET Standard 1.0, 1.1, 1.2, 1.3, 1.4, 1.6
UWP 10.0