ListItemCollection::Contains Method (ListItem^)
.NET Framework (current version)
Determines whether the collection contains the specified item.
Assembly: System.Web (in System.Web.dll)
Parameters
- item
-
Type:
System.Web.UI.WebControls::ListItem^
A ListItem to search for in the collection.
Return Value
Type: System::Booleantrue if the collection contains the specified item; otherwise, false.
Use the Contains method to determine whether the ListItem specified by the item parameter is in the collection.
.NET Framework
Available since 1.1
Available since 1.1
Show: