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

Int32Collection.CopyTo Method

Copies all of the Int32 values in a collection to a specified array.

Namespace:  System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

abstract CopyTo : 
        array:int[] * 
        index:int -> unit  
override CopyTo : 
        array:int[] * 
        index:int -> unit

Parameters

array
Type: System.Int32[]

Identifies the array to which content is copied.

index
Type: System.Int32

Index position in the array to which the contents of the collection are copied.

Implements

ICollection(T).CopyTo(T[], Int32)

ExceptionCondition
ArgumentOutOfRangeException

index is less than zero.

ArgumentException

array is multidimensional.

-or-

The number of items in the source Int32Collection is greater than the available space from index to the end of the destination array.

.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