SiteMapProvider.FindSiteMapNodeFromKey Method (String)
Retrieves a SiteMapNode object based on a specified key.
Assembly: System.Web (in System.Web.dll)
The SiteMapProvider implementation returns null in all cases. Classes that derive from the SiteMapProvider class can override the method to provide lookup functionality based on a unique key (instead of a URL, which is used by the FindSiteMapNode method). Implement the method if your site map provider implementation uses the SiteMapNode.Key property of a SiteMapNode object as a primary identifier in a site map structure.
The StaticSiteMapProvider class provides an implementation that handles searching for site map nodes that do not define a URL.
The XmlSiteMapProvider class, which is the default site map provider for ASP.NET, uses the URL of a SiteMapNode as a key in the various collections that the classes maintain. Therefore, if a node provides a URL, it must be unique within the scope of the site map provider. If no URL is provided, a unique identifier is generated to identify the SiteMapNode.
Available since 2.0