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