System.Web.SiteMapProvider.CurrentNode Property

Gets the System.Web.SiteMapNode object that represents the currently requested page.

Syntax

public virtual SiteMapNode CurrentNode { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The SiteMapProvider.SiteMapResolve event is raised before attempting to retrieve a System.Web.SiteMapNode object, to enable event subscribers to return an instance of the System.Web.SiteMapNode class. If there are no event subscribers, the System.Web.SiteMapProvider class calls the SiteMapProvider.FindSiteMapNode(HttpContext) method using the current HTTP context to retrieve a System.Web.SiteMapNode that represents the currently requested page.

If the currently requested page does not correspond with a System.Web.SiteMapNode, null is returned. If security trimming is enabled and the user is not permitted to access the System.Web.SiteMapNode, null is returned.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0