BaseCollection::CopyTo Method (Array^, Int32)

 

Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array starting at the specified destination Array index.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
virtual void CopyTo(
	Array^ ar,
	int index
) sealed

Parameters

ar
Type: System::Array^

The one-dimensional Array that is the destination of the elements copied from the current Array.

index
Type: System::Int32

The zero-based relative index in ar at which copying begins.

.NET Framework
Available since 1.1
Return to top
Show: