System.Web.UI.WebControls.TreeNodeCollection.Contains Method

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

Syntax

public bool Contains (TreeNode child)

Parameters

child
Documentation for this section has not yet been entered.

Returns

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

Remarks

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