Removes a System.Web.UI.WebControls.ListItem from the collection that represents the specified string.
- item
- A string that represents the item to remove from the collection.
Use the ListItemCollection.Remove(string) method to remove a System.Web.UI.WebControls.ListItem object from the collection. This implementation of the method creates a System.Web.UI.WebControls.ListItem object using the text in the item parameter and then removes this System.Web.UI.WebControls.ListItem from the collection. The specified item parameter must match the ListItem.Value property of an existing System.Web.UI.WebControls.ListItem object, or no item is removed from the collection.