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