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)
Available in Sandboxed Solutions: No

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

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.

See Also

Reference

SPSiteMapProvider Class

SPSiteMapProvider Members

FindSiteMapNode Overload

Microsoft.SharePoint.Navigation Namespace

System.Web.SiteMapNode