Editar

Compartir a través de


SiteMapProvider.AddNode Method

Definition

Adds a SiteMapNode object to the node collection that is maintained by the site map provider.

Overloads

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.

AddNode(SiteMapNode)

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

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.

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