Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.