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)

public override SiteMapNode FindSiteMapNode(
	string rawUrl
)

Parameters

rawUrl
Type: System.String

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

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.

Show: