Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Public Property CurrentWeb As SPWeb
Get
Set
'Usage
Dim instance As PortalSiteMapProvider
Dim value As SPWeb
value = instance.CurrentWeb
instance.CurrentWeb = value
public SPWeb CurrentWeb { get; set; }
Property Value
Type: Microsoft.SharePoint.SPWeb
An SPWeb object that the provider uses as a security context.
Remarks
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.