Determines whether the specified System.Web.UI.WebControls.TreeNodeBinding object is in the collection.
- binding
- The System.Web.UI.WebControls.TreeNodeBinding to find.
true if the System.Web.UI.WebControls.TreeNodeBinding is in the collection; otherwise, false.
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.