PortalSiteMapProvider.CurrentNavSiteMapProvider property

Gets the PortalSiteMapProvider object that is attached by default to the current navigation or Quick Launch.

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

public static PortalSiteMapProvider CurrentNavSiteMapProvider { get; }

Property value

Type: Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider
A reference to the PortalSiteMapProvider object.

For the declaration of this PortalSiteMapProvider object and its default settings, see the web.config file.

This PortalSiteMapProvider uses the same settings as the CurrentNavSiteMapProviderNoEncode object, except that its EncodeOutput property is set to true.