System.Web.SiteMapProvider.AddNode Method

Adds a System.Web.SiteMapNode object to the node collection that is maintained by the site map provider and specifies the parent System.Web.SiteMapNode object.

Syntax

protected virtual void AddNode (SiteMapNode node, SiteMapNode parentNode)

Parameters

node
The System.Web.SiteMapNode to add to the node collection maintained by the provider.
parentNode
The System.Web.SiteMapNode that is the parent of node.

Remarks

Classes deriving from the System.Web.SiteMapProvider class can override the SiteMapProvider.AddNode(SiteMapNode, SiteMapNode) method and provide logic for adding a System.Web.SiteMapNode object with a specified parent to the node collection that is maintained by the site map provider. For example, the XmlSiteMapProvider.AddNode(SiteMapNode, SiteMapNode) method adds the System.Web.SiteMapNode object that is specified by node to the System.Web.SiteMapNodeCollection collection that is maintained by the System.Web.XmlSiteMapProvider object and creates a parent/child relationship between the System.Web.SiteMapNode object that is specified by node and parentNode. The default implementation of the erload:System.Web.SiteMapProvider.AddNode method throws a NotImplementedException exception.

Requirements

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