SiteMapProvider.CurrentNode Property
Assembly: System.Web (in system.web.dll)
/** @property */ public SiteMapNode get_CurrentNode ()
public function get CurrentNode () : SiteMapNode
Property Value
A SiteMapNode that represents the currently requested page; otherwise, a null reference (Nothing in Visual Basic), if the SiteMapNode is not found or cannot be returned for the current user.The SiteMapResolve event is raised before attempting to retrieve a SiteMapNode object, to enable event subscribers to return an instance of the SiteMapNode class. If there are no event subscribers, the SiteMapProvider class calls the FindSiteMapNode method using the current HTTP context to retrieve a SiteMapNode that represents the currently requested page.
If the currently requested page does not correspond with a SiteMapNode, a null reference (Nothing in Visual Basic) is returned. If security trimming is enabled and the user is not permitted to access the SiteMapNode, a null reference (Nothing in Visual Basic) is returned.
| Topic | Location |
|---|---|
| How to: Programmatically Modify Site-Map Nodes in Memory | Building ASP .NET Web Applications |
| How to: Programmatically Modify Site-Map Nodes in Memory | Building ASP .NET Web Applications |
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.