System.Web.UI.WebControls.ListItemCollection.Remove Method

Removes the specified System.Web.UI.WebControls.ListItem from the collection.

Syntax

public void Remove (ListItem item)

Parameters

item
The System.Web.UI.WebControls.ListItem to remove from the collection.

Remarks

Use the ListItemCollection.Remove(string) method to remove a System.Web.UI.WebControls.ListItem from the collection. This implementation of the method takes the System.Web.UI.WebControls.ListItem specified by the item parameter and removes it from 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