PortalSiteMapProvider.CurrentSite property

Gets or sets the SPSite object that is used by the PortalSiteMapProvider object.

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

Syntax

'Declaration
Public Property CurrentSite As SPSite
    Get
    Set
'Usage
Dim instance As PortalSiteMapProvider
Dim value As SPSite

value = instance.CurrentSite

instance.CurrentSite = value
public SPSite CurrentSite { get; set; }

Property value

Type: Microsoft.SharePoint.SPSite
An SPSite object that is used by the provider.

Remarks

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

See also

Reference

PortalSiteMapProvider class

PortalSiteMapProvider members

Microsoft.SharePoint.Publishing.Navigation namespace

PortalSiteMapProvider