System.Web.UI.StateManagedCollection.CopyTo Method

Copies the elements of the System.Web.UI.StateManagedCollection collection to an array, starting at a particular array index.

Syntax

public void CopyTo (Array array, int index)

Parameters

array
The one-dimensional Array that is the destination of the elements copied from the System.Web.UI.StateManagedCollection. The Array must have zero-based indexing.
index
The zero-based index in array at which copying begins.

Remarks

The specified array must be of a compatible type.

The elements are copied to the Array in the same order in which the enumerator iterates through the System.Web.UI.StateManagedCollection collection.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0