Share via


SPXmlContentMapProvider.FindSiteMapNode Method (HttpContext)

Retrieves a SiteMapNode object that represents the currently requested page using the specified HttpContext object.

Namespace:  Microsoft.SharePoint.Navigation
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overrides Function FindSiteMapNode ( _
    context As HttpContext _
) As SiteMapNode
'Usage
Dim instance As SPXmlContentMapProvider
Dim context As HttpContext
Dim returnValue As SiteMapNode

returnValue = instance.FindSiteMapNode(context)
public override SiteMapNode FindSiteMapNode(
    HttpContext context
)

Parameters

Return Value

Type: System.Web.SiteMapNode
A SiteMapNode that represents the currently requested page.

Exceptions

Exception Condition
ArgumentNullException

HttpContext object is a null reference (Nothing in Visual Basic).

Remarks

This method calls the abstract FindSiteMapNode method to retrieve a SiteMapNode object for the currently requested page based on the raw URL or the virtual path of the request.

See Also

Reference

SPXmlContentMapProvider Class

SPXmlContentMapProvider Members

FindSiteMapNode Overload

Microsoft.SharePoint.Navigation Namespace