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

Appends a System.Web.UI.WebControls.ListItem to the end of the collection that represents the specified string.

Syntax

public void Add (string item)

Parameters

item
A string that represents the item to add to the end of 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 creates a System.Web.UI.WebControls.ListItem to represent the text specified by the item parameter. This System.Web.UI.WebControls.ListItem is then appended 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