SiteMapProvider.AddNode Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a SiteMapNode object to the node collection that is maintained by the site map provider.
AddNode(SiteMapNode) |
Adds a SiteMapNode object to the node collection that is maintained by the site map provider. |
AddNode(SiteMapNode, SiteMapNode) |
Adds a SiteMapNode object to the node collection that is maintained by the site map provider and specifies the parent SiteMapNode object. |
Adds a SiteMapNode object to the node collection that is maintained by the site map provider.
protected:
virtual void AddNode(System::Web::SiteMapNode ^ node);
protected virtual void AddNode(System.Web.SiteMapNode node);
abstract member AddNode : System.Web.SiteMapNode -> unit
override this.AddNode : System.Web.SiteMapNode -> unit
Protected Overridable Sub AddNode (node As SiteMapNode)
Parameters
- node
- SiteMapNode
The SiteMapNode to add to the node collection maintained by the provider.
Remarks
Classes deriving from the SiteMapProvider class can override the AddNode method and provide logic for adding a SiteMapNode object to the node collection that is maintained by the site map provider. The default implementation of the AddNode method throws a NotImplementedException exception.
See also
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Adds a SiteMapNode object to the node collection that is maintained by the site map provider and specifies the parent SiteMapNode object.
protected public:
virtual void AddNode(System::Web::SiteMapNode ^ node, System::Web::SiteMapNode ^ parentNode);
protected internal virtual void AddNode(System.Web.SiteMapNode node, System.Web.SiteMapNode parentNode);
abstract member AddNode : System.Web.SiteMapNode * System.Web.SiteMapNode -> unit
override this.AddNode : System.Web.SiteMapNode * System.Web.SiteMapNode -> unit
Protected Friend Overridable Sub AddNode (node As SiteMapNode, parentNode As SiteMapNode)
Parameters
- node
- SiteMapNode
The SiteMapNode to add to the node collection maintained by the provider.
- parentNode
- SiteMapNode
The SiteMapNode that is the parent of node
.
Exceptions
In all cases.
Remarks
Classes deriving from the SiteMapProvider class can override the AddNode method and provide logic for adding a SiteMapNode object with a specified parent to the node collection that is maintained by the site map provider. For example, the XmlSiteMapProvider.AddNode method adds the SiteMapNode object that is specified by node
to the SiteMapNodeCollection collection that is maintained by the XmlSiteMapProvider object and creates a parent/child relationship between the SiteMapNode object that is specified by node
and parentNode
. The default implementation of the AddNode method throws a NotImplementedException exception.
See also
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: