System.Web.UI.WebControls.ListItemCollection.CopyTo Method

Copies the items from the System.Web.UI.WebControls.ListItemCollection to the specified Array, starting with the specified index.

Syntax

public void CopyTo (Array array, int index)

Parameters

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

Remarks

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

Note:

The array parameter must be a zero-based Array.

Requirements

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