Share via


ConsoleNode.IsCurrentlyEnabled method

Specifies whether the ConsoleNode object should be enabled or disabled without being restricted to what is defined in the AuthoringStates enumeration.

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

Syntax

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

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

Parameters

Return value

Type: System.Boolean
The SPBasePermissions rights mask representing the required rights.

Remarks

This value overrides that of a referenced ConsoleAction when the UseActionStatesMask property is set to false.

In some situations, a bitwise AND of AuthoringStates is not adequate to define exactly when an action should be enabled. In this case, you can use this method to define the Boolean return value.

See also

Reference

ConsoleNode class

ConsoleNode members

Microsoft.SharePoint.Publishing.WebControls namespace