Share via


SwitchToPublishedModeAction.IsCurrentlyEnabled method (AuthoringStates)

Specifies whether the ModifyWebPartsNode object is enabled regardless of the restrictions defined in the AuthoringStates enumeration.

Namespace:  Microsoft.SharePoint.Publishing.WebControls.EditingMenuActions
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Overrides Function IsCurrentlyEnabled ( _
    currentState As AuthoringStates _
) As Boolean
'Usage
Dim instance As SwitchToPublishedModeAction
Dim currentState As AuthoringStates
Dim returnValue As Boolean

returnValue = instance.IsCurrentlyEnabled(currentState)
public override bool IsCurrentlyEnabled(
    AuthoringStates currentState
)

Parameters

Return value

Type: System.Boolean
A Boolean value that represents whether to enable the EditingMenuActionsSwitchToPublishedModeAction object.
If this object can be enabled, the RequiredStates() property is checked against the current state of the page.

Remarks

A bitwise AND operation of the AuthoringStates class does not define exactly when to enable a CreateSiteVariationAction object. If you use a bitwise ANDoperation, use this method to specifically define the return Boolean value.

See also

Reference

SwitchToPublishedModeAction class

SwitchToPublishedModeAction members

IsCurrentlyEnabled overload

Microsoft.SharePoint.Publishing.WebControls.EditingMenuActions namespace