PortalSiteMapProvider.CurrentWeb property

Gets or sets the SPWeb object that the PortalSiteMapProvider object uses as a security context.

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

public SPWeb CurrentWeb { get; set; }

Property value

Type: Microsoft.SharePoint.SPWeb
An SPWeb object that the provider uses as a security context.

When accessed from within an HttpContext object, this property returns a Web object. When accessed without an HttpContext object, you must set this property before requesting nodes from the provider.