Export (0) Print
Expand All

PortalSiteMapDataSource class

Provides a data source control that navigation controls can bind to, and includes support for additional features that are specific to the PortalSiteMapProvider class.

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

[MdsCompliantAttribute(IsCompliant = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class PortalSiteMapDataSource : SiteMapDataSource

In the ASP.NET navigation model, the SiteMapDataSource control acts as an adapter between menu controls and the underlying SiteMapProvider object. The SiteMapDataSource object provides access to the specific PortalSiteMapProvider implementation. The PortalSiteMapDataSource object surfaces the extra PortalSiteMapProvider data.

It is valid to bind the data source to the PortalSiteMapProvider and other providers. If you bind the data source to other providers, the settings that are specific to the PortalSiteMapProvider object, such as the EnableInheritance property and the TreatStartingNodeAsCurrent property, and so on, will have no effect in the configuration. Specifically, the PortalSiteMapDataSource object may be bound to a SwitchableSiteMapProvider object, which allows its properties to be specified via the SwitchableProperty mechanism.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft