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