ConsoleAction.IsCurrentlyEnabled Method

Determines whether the ConsoleAction is currently enabled.

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


Public Overridable Function IsCurrentlyEnabled ( _
    currentState As AuthoringStates _
) As Boolean
Dim instance As ConsoleAction
Dim currentState As AuthoringStates
Dim returnValue As Boolean

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


Return Value

Type: System.Boolean
True if the ConsoleAction is currently enabled; otherwise, False.


The default return value for this method checks the RequiredStates property against the current state of the page.In some situations, a bitwise AND of the AuthoringStates class does not adequately define exactly when a ConsoleAction object should be enabled. When this is the case, use this method to define the return Boolean value in a specific way.

See Also


ConsoleAction Class

ConsoleAction Members

Microsoft.SharePoint.Publishing.WebControls.EditingMenuActions Namespace