Export (0) Print
Expand All

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)

public SPSite CurrentSite { get; set; }

Property value

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

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.

Show:
© 2015 Microsoft