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.

Inheritance hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.HierarchicalDataSourceControl
      System.Web.UI.WebControls.SiteMapDataSource
        Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapDataSource
          Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapDataSourceSwitch

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

Syntax

'Declaration
<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 _
    Inherits SiteMapDataSource
'Usage
Dim instance As PortalSiteMapDataSource
[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

Remarks

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.

Thread safety

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

See also

Reference

PortalSiteMapDataSource members

Microsoft.SharePoint.Publishing.Navigation namespace