System.Web.UI.WebControls.ListItemCollection.Add Method

Appends the specified System.Web.UI.WebControls.ListItem to the end of the collection.

Syntax

public void Add (ListItem item)

Parameters

item
The System.Web.UI.WebControls.ListItem to append to the collection.

Remarks

Use the ListItemCollection.Add(string) method to append a System.Web.UI.WebControls.ListItem to the end of the collection. This implementation of the method takes the System.Web.UI.WebControls.ListItem specified by the item parameter and appends it to the collection.

Requirements

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