System.Web.UI.WebControls.TreeNodeBindingCollection.Contains Method

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

Syntax

public bool Contains (TreeNodeBinding binding)

Parameters

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

Returns

true if the System.Web.UI.WebControls.TreeNodeBinding is in the collection; otherwise, false.

Remarks

Use the TreeNodeBindingCollection.Contains(TreeNodeBinding) method to determine whether a System.Web.UI.WebControls.TreeNodeBinding object is contained in the System.Web.UI.WebControls.TreeNodeBindingCollection object. This method is commonly used to test for the existence of a System.Web.UI.WebControls.TreeNodeBinding object before performing a task, such as adding or removing a System.Web.UI.WebControls.TreeNodeBinding 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