System.Web.UI.WebControls.MenuItemBindingCollection.Contains Method

Determines whether the specified System.Web.UI.WebControls.MenuItemBinding object is in the collection.

Syntax

public bool Contains (MenuItemBinding binding)

Parameters

binding
The System.Web.UI.WebControls.MenuItemBinding to find.

Returns

true if the specified System.Web.UI.WebControls.MenuItemBinding is contained in the collection; otherwise, false.

Remarks

Use the MenuItemBindingCollection.Contains(MenuItemBinding) method to determine whether a System.Web.UI.WebControls.MenuItemBinding object is contained in the collection. This method is commonly used to test for the existence of a System.Web.UI.WebControls.MenuItemBinding object before performing a task, such as adding or removing a menu item binding from the collection.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0