ItemCollection.CopyTo Method (Array, Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: