Share via


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

  • state
    Type: System.Boolean

    [true] if the toggle command is on; otherwise, [false].

See also

Reference

SPRibbonQueryCommand class

SPRibbonQueryCommand members

SPRibbonQueryCommand overload

Microsoft.SharePoint.WebControls namespace