System.Web.UI.WebControls Namespace ListItemCollection Class
Determines whether the collection contains a specified item.
[ VB ]
Public Function Contains ( _
ByVal item As ListItem _
) As Boolean
[ C# ]
public bool Contains (
ListItem item
);
[ C++ ]
public: bool Contains (
ListItem* item
);
[ JScript ]
public function Contains (
item : ListItem
) : Boolean;
- item
- A ListItem to search for in the collection.
This property accepts or returns only a boolean value: true 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.
ListItemCollection Members