SPSiteMapProvider.FindSiteMapNode method (String)
Retrieves a SiteMapNode object that represents the Web page at the specified URL, which is typically the URL of the site's root folder.
Namespace: Microsoft.SharePoint.Navigation
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overrides Function FindSiteMapNode ( _
rawUrl As String _
) As SiteMapNode
'Usage
Dim instance As SPSiteMapProvider
Dim rawUrl As String
Dim returnValue As SiteMapNode
returnValue = instance.FindSiteMapNode(rawUrl)
public override SiteMapNode FindSiteMapNode(
string rawUrl
)
Parameters
rawUrl
Type: System.StringA URL that identifies the Web page for which to retrieve a SiteMapNode object.
Return value
Type: System.Web.SiteMapNode
Returns a SiteMapNode object that represents the page identified by the rawUrl parameter; otherwise, a null reference.
Remarks
The Web site represented by the SiteMapNode object is not necessarily the current SPWeb object.
When SPContext.Current.Web.Navigation.UseShared is set to True, this method returns the first ancestor Web object that has its UseShared property set to False.