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
context
Type: System.Web.HttpContextThe HttpContext used to match node information with the URL of the requested page.
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.