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