System.Web.UI.WebControls.TreeNode.Clone Method

Creates a new instance of the System.Web.UI.WebControls.TreeNode class with the properties of the current System.Web.UI.WebControls.TreeNode instance.

Syntax

public virtual object Clone ()

Returns

A new instance of System.Web.UI.WebControls.TreeNode with the properties of the current System.Web.UI.WebControls.TreeNode instance.

Remarks

This is a helper method that supports the ICloneable interface implemented by System.Web.UI.WebControls.TreeNode.

Requirements

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