PublishAction.IsCurrentlyEnabled Method
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 PublishAction
Dim currentState As AuthoringStates
Dim returnValue As Boolean
returnValue = instance.IsCurrentlyEnabled(currentState)
public override bool IsCurrentlyEnabled(
AuthoringStates currentState
)
Parameters
currentState
Type: Microsoft.SharePoint.Publishing.WebControls.AuthoringStatesSpecifies the bitmask of the AuthoringStates class that represents the current state of the page.
Return Value
Type: System.Boolean
A Boolean value that represents whether to enable the ModifyPagesLibrarySettingsAction object.
If this object can be enabled, the RequiredStates() property is checked against the current state of the page.
Remarks
A bitwise AND of the AuthoringStates class does not define exactly when to enable a CreateSiteVariationAction object. If using a bitwise AND, use this method to specifically define the return Boolean value.
See Also
Reference
Microsoft.SharePoint.Publishing.WebControls.EditingMenuActions Namespace