CopyTo Method

ItemCollection.CopyTo Method (Array, Int32)

 

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

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

public void CopyTo(
	Array array,
	int index
)

Parameters

array
Type: System.Array

The destination array to copy to.

index
Type: System.Int32

The zero-based index in the destination array.

Exception Condition
ArgumentNullException

The array parameter is null.

ArgumentException

The destination array is multidimensional.

ArgumentOutOfRangeException

The index parameter is less than 0.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft