Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ItemCollection.CopyTo Method

Copies the elements of the collection to an array, starting at a particular array index.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

abstract CopyTo : 
        array:Array * 
        index:int -> unit  
override CopyTo : 
        array:Array * 
        index:int -> unit

Parameters

array
Type: System.Array

The destination array to copy to.

index
Type: System.Int32

The zero-based index in the destination array.

Implements

ICollection.CopyTo(Array, Int32)

ExceptionCondition
ArgumentNullException

The array parameter is a null reference (Nothing in Visual Basic).

ArgumentException

The destination array is multidimensional.

ArgumentOutOfRangeException

The index parameter is less than 0.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft