Partilhar via


PortalSiteMapDataSourceSwitch Class

Switches which PortalSiteMapDataSource object that is used by the current PortalNavigation object.

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.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class PortalSiteMapDataSourceSwitch _
    Inherits PortalSiteMapDataSource
'Usage
Dim instance As PortalSiteMapDataSourceSwitch
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class PortalSiteMapDataSourceSwitch : PortalSiteMapDataSource

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

PortalSiteMapDataSourceSwitch Members

Microsoft.SharePoint.Publishing.Navigation Namespace