ModifyWebPartsNode.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 ModifyWebPartsNode
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 ModifyWebPartsNode 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
Microsoft.SharePoint.Publishing.WebControls.EditingMenuActions namespace