PortalSiteMapDataSource Class

An ASP.NET hierarchical data source that is used with 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
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class PortalSiteMapDataSource _
    Inherits SiteMapDataSource
'Usage
Dim instance As PortalSiteMapDataSource
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class PortalSiteMapDataSource : SiteMapDataSource

Remarks

This data source enacts the inheritance settings specified on the PublishingWeb and PublishingPage classes. It also provides type-based trimming of navigation nodes and an extensible trimming 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