SiteMapProvider.AddNode Method
Definition
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.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應