CopyTo Method
Collapse the table of content
Expand the table of content

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 Overridable Sub CopyTo (
	array As Array,
	index As Integer
)

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:
© 2016 Microsoft