Int32Collection.CopyTo Method (Int32[], Int32)

 

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

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

public void CopyTo(
	int[] array,
	int index
)

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.

Exception Condition
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
Available since 3.0
Return to top
Show: