System.Web.UI.WebControls.TreeNodeCollection.Clear Method

Empties the System.Web.UI.WebControls.TreeNodeCollection object.

Syntax

public void Clear ()

Remarks

Use the TreeNodeCollection.Clear method to remove every System.Web.UI.WebControls.TreeNode object from the System.Web.UI.WebControls.TreeNodeCollection.

Note:

To remove an individual node from the collection, use the TreeNodeCollection.Remove(TreeNode) or TreeNodeCollection.RemoveAt(int) method.

Requirements

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