System.Web.UI.WebControls.ListItemCollection.AddRange Method

Adds the items in an array of System.Web.UI.WebControls.ListItem objects to the collection.

Syntax

public void AddRange (ListItem[] items)

Parameters

items
An array of System.Web.UI.WebControls.ListItem objects that contain the items to add to the collection.

Remarks

Use the ListItemCollection.AddRange(ListItem[]) method to add the items in the array of System.Web.UI.WebControls.ListItem objects specified by the items parameter. This allows you to add multiple System.Web.UI.WebControls.ListItem objects to the collection in a single step.

Requirements

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