다음을 통해 공유


CreateNewsLinkAction.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 CreateNewsLinkAction
Dim currentState As AuthoringStates
Dim returnValue As Boolean

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

Parameters

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 ANDoperation, use this method to specifically define the return Boolean value.

See Also

Reference

CreateNewsLinkAction Class

CreateNewsLinkAction Members

Microsoft.SharePoint.Publishing.WebControls.EditingMenuActions Namespace

RequiredStates

UserRights