Export (0) Print
Expand All

ControlCollection.CopyTo Method

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)

abstract CopyTo : 
        array:Array * 
        index:int -> unit  
override CopyTo : 
        array:Array * 
        index:int -> unit

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.

Implements

ICollection.CopyTo(Array, Int32)

ExceptionCondition
HttpException

array is not a null reference (Nothing in Visual Basic) and not one-dimensional.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft