Adds a System.Web.SiteMapNode object to the collections that are maintained by the current provider.
- node
- The System.Web.SiteMapNode to add to the provider.
- parentNode
- The System.Web.SiteMapNode under which to add node.
The node parameter is added to an internal collection, and a parent/child relationship is created between it and parentNode.
The System.Web.XmlSiteMapProvider class, derived from the System.Web.StaticSiteMapProvider class and the default site map provider for ASP.NET, uses the SiteMapNode.Url property of a System.Web.SiteMapNode object as a lookup key in its internal collections, by default. If the SiteMapNode.Url property of the System.Web.SiteMapNode is set, it must be unique within the scope of the provider. The XmlSiteMapProvider.FindSiteMapNode(string) method attempts to retrieve nodes based on their SiteMapNode.Url. Otherwise, you can use the SiteMapNode.Key property, and the corresponding XmlSiteMapProvider.FindSiteMapNodeFromKey(string) method, to retrieve nodes.