- Use the <xref:System.Web.UI.WebControls.ListItemCollection.Remove%2A> method to remove a <xref:System.Web.UI.WebControls.ListItem> object from the collection. This implementation of the method creates a <xref:System.Web.UI.WebControls.ListItem> object using the text in the `item` parameter and then removes this <xref:System.Web.UI.WebControls.ListItem> from the collection. The specified `item` parameter must match the <xref:System.Web.UI.WebControls.ListItem.Value%2A> property of an existing <xref:System.Web.UI.WebControls.ListItem> object, or no item is removed from the collection.
0 commit comments