asp.net.ph

ListItemCollection.Contains Method

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;

Parameters

item
A ListItem to search for in the collection.

Return Value

This property accepts or returns only a boolean value: true if the collection contains the specified item; otherwise, false.

Remarks

Use the Contains method to determine whether the ListItem specified by the item parameter is in the collection.

See Also

ListItemCollection Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph