Share via


SwitchableProperty class

Defines a property of a SiteMapDataSource object whose value depends on the SiteMapProvider that is currently selected by the SwitchableSiteMapProvider object.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Publishing.Navigation.SwitchableProperty

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class SwitchableProperty
'Usage
Dim instance As SwitchableProperty
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class SwitchableProperty

Remarks

The SwitchableProperty class is used with the SwitchableProperties property to provide property settings that depend on the currently selected provider as indicated by the GetCurrentWrappedProvider() method.

Normally, the SwitchableProperty class is specified as a nested XML element in the master page, which is loaded via the ASP.NET ParseChildrenAttribute 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

SwitchableProperty members

Microsoft.SharePoint.Publishing.Navigation namespace

Microsoft.SharePoint.Publishing.Navigation.SwitchableSiteMapProvider