System.Web.SiteMapNode.Clone Method

Creates a new node that is a copy of the current node.

Syntax

public virtual SiteMapNode Clone ()

Returns

A new node that is a copy of the current node.

Remarks

Calls the SiteMapNode.Clone(bool) method with the parameter set to false. The provider, SiteMapNode.Title, SiteMapNode.Url, SiteMapNode.Description, and SiteMapNode.Key properties are copied. The SiteMapNode.Roles and SiteMapNode.Attributes collections are copied to new collections. Ancestor and child nodes are not cloned.

Requirements

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