Share via


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

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