ModifyPagesLibrarySettingsAction.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 ModifyPagesLibrarySettingsAction
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.AuthoringStates
Specifies 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 operation of the AuthoringStates class does not define exactly when to enable a CreateSiteVariationAction object. If you use a bitwise AND operation, use this method to specifically define the return Boolean value.
See Also
Reference
ModifyPagesLibrarySettingsAction Class
ModifyPagesLibrarySettingsAction Members
Microsoft.SharePoint.Publishing.WebControls.EditingMenuActions Namespace