SPRibbonQueryCommand constructor (String, Boolean, String)
Initializes a new instance of the SPRibbonQueryCommand object with the specified identifier and state that references if the command is enabled.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub New ( _
commandId As String, _
state As Boolean, _
enabledStatement As String _
)
'Usage
Dim commandId As String
Dim state As Boolean
Dim enabledStatement As String
Dim instance As New SPRibbonQueryCommand(commandId, _
state, enabledStatement)
public SPRibbonQueryCommand(
string commandId,
bool state,
string enabledStatement
)
Parameters
commandId
Type: System.StringThe identifier of the command.
state
Type: System.Boolean[true] if the toggle command is on; otherwise, [false].
enabledStatement
Type: System.StringThe JavaScript) code that is executed to determine whether the command should be enabled.