CaptureCollection.CopyTo Method (Array, Int32)
.NET Framework (current version)
Copies all the elements of the collection to the given array beginning at the given index.
Assembly: System (in System.dll)
abstract CopyTo : array:Array * arrayIndex:int -> unit override CopyTo : array:Array * arrayIndex:int -> unit
Parameters
- array
-
Type:
System.Array
The array the collection is to be copied into.
- arrayIndex
-
Type:
System.Int32
The position in the destination array where copying is to begin.
Implements
ICollection.CopyTo(Array, Int32)| Exception | Condition |
|---|---|
| ArgumentNullException | array is null. |
| ArgumentOutOfRangeException | arrayIndex is outside the bounds of array. -or- arrayIndex plus CaptureCollection.Count is outside the bounds of array. |
Because the entire collection is copied into the array starting at the given index, the destination array must be at least as large as the collection.
Warning |
|---|
This member is not present in the Portable Class Library. If you are developing applications that target the Portable Class Library, use the CaptureCollection.ICollection.CopyTo method instead. |
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show:
