Upraviť

Zdieľať cez


ListItemCollection.Contains(ListItem) Method

Definition

Determines whether the collection contains the specified item.

public:
 bool Contains(System::Web::UI::WebControls::ListItem ^ item);
public bool Contains (System.Web.UI.WebControls.ListItem item);
member this.Contains : System.Web.UI.WebControls.ListItem -> bool
Public Function Contains (item As ListItem) As Boolean

Parameters

item
ListItem

A ListItem to search for in the collection.

Returns

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.

Applies to

See also