Share via


PortalSiteMapProvider.FindSiteMapNode Method (String, SPWeb)

Returns the site map node associated with the specified URL and context.

Namespace:  Microsoft.SharePoint.Publishing.Navigation
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Function FindSiteMapNode ( _
    rawUrl As String, _
    currentContext As SPWeb _
) As SiteMapNode
'Usage
Dim instance As PortalSiteMapProvider
Dim rawUrl As String
Dim currentContext As SPWeb
Dim returnValue As SiteMapNode

returnValue = instance.FindSiteMapNode(rawUrl, _
    currentContext)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public SiteMapNode FindSiteMapNode(
    string rawUrl,
    SPWeb currentContext
)

Parameters

  • rawUrl
    Type: System.String
    A string containing the URL of the requested node.
  • currentContext
    Type: Microsoft.SharePoint.SPWeb
    An SPWeb object that exists within the context of a particular user. For example, this parameter can be the SPContext.Current.Web object for the current user.

Return Value

Type: System.Web.SiteMapNode
A System.Web.SiteMapNode object that represents the site map node.

See Also

Reference

PortalSiteMapProvider Class

PortalSiteMapProvider Members

FindSiteMapNode Overload

Microsoft.SharePoint.Publishing.Navigation Namespace