Add Method (ListItem)
Collapse the table of content
Expand the table of content

ListItemCollection.Add Method (ListItem)


Appends the specified ListItem to the end of the collection.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public void Add(
	ListItem item


Type: System.Web.UI.WebControls.ListItem

The ListItem to append to the collection.

Use the Add method to append a ListItem to the end of the collection. This implementation of the method takes the ListItem specified by the item parameter and appends it to the collection.

.NET Framework
Available since 1.1
Return to top
© 2016 Microsoft