System.Web.UI.WebControls.DataListItemCollection.CopyTo Method

Copies all the items from this System.Web.UI.WebControls.DataListItemCollection collection to the specified Array object, starting at the specified index in the Array object.

Syntax

public void CopyTo (Array array, int index)

Parameters

array
A zero-based Array object that receives the copied items from the System.Web.UI.WebControls.DataListItemCollection collection.
index
The first position in the specified Array object to receive the copied contents.

Remarks

Use this method to copy the contents of the System.Web.UI.WebControls.DataListItemCollection collection into the specified Array object, starting at the specified index.

Note:

The array parameter must be a zero-based Array object.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0