SwitchableProperty class

SharePoint 2013

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


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

[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class SwitchableProperty

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..

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