SwitchToAuthoringModeAction.IsCurrentlyEnabled(AuthoringStates) SwitchToAuthoringModeAction.IsCurrentlyEnabled(AuthoringStates) SwitchToAuthoringModeAction.IsCurrentlyEnabled(AuthoringStates) Method

Definition

Determines whether to allow the SwitchToAuthoringModeAction object to specify whether it can be enabled or disabled independently of what is defined in the AuthoringStates enumeration.

public:
 override bool IsCurrentlyEnabled(Microsoft::SharePoint::Publishing::WebControls::AuthoringStates currentState);
public override bool IsCurrentlyEnabled (Microsoft.SharePoint.Publishing.WebControls.AuthoringStates currentState);
Public Overrides Function IsCurrentlyEnabled (currentState As AuthoringStates) As Boolean
Parameters
currentState
AuthoringStates AuthoringStates AuthoringStates

Bitmask of AuthoringStates class that represents the current state of the page.

Returns

A Boolean value that represents whether the SwitchToAuthoringModeAction object should be enabled.The default return value for this method checks the Microsoft.SharePoint.Publishing.WebControls.EditingMenuActions.RequiredStates property against the current state of the page.

Remarks

In some situations, a bitwise AND of the AuthoringStates class does not adequately define exactly when a Microsoft.SharePoint.Publishing.WebControls.CreateSiteVariationAction object should be enabled. When this is the case, use this method to define the return Boolean value in a specific way.

Applies to