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.
- 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.
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.