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
)

Parameters

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
Show: