Share via


SPRibbonCommand.EnabledStatement Property

Gets or sets the code that is run to determine whether the command should be enabled.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overridable Property EnabledStatement As String
    Get
    Set
'Usage
Dim instance As SPRibbonCommand
Dim value As String

value = instance.EnabledStatement

instance.EnabledStatement = value
public virtual string EnabledStatement { get; set; }

Property Value

Type: System.String

Implements

IRibbonCommand.EnabledStatement

Remarks

The statement must return true if the command should be enabled; otherwise, the command is disabled.

See Also

Reference

SPRibbonCommand Class

SPRibbonCommand Members

Microsoft.SharePoint.WebControls Namespace