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)
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.