ControlCollection::CopyTo Method (Array^, Int32)

 

Copies the child controls stored in the ControlCollection object to an System::Array object, beginning at the specified index location in the System::Array.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

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

Parameters

array
Type: System::Array^

The System::Array to copy the child controls to.

index
Type: System::Int32

The zero-based relative index in array where copying begins.

Exception Condition
HttpException

array is not null and not one-dimensional.

.NET Framework
Available since 1.1
Return to top
Show: