Share via


SPRibbonPopulateQueryCommand constructor (String, String, String)

Initializes a new instance of an SPRibbonPopulateQueryCommand object with the specified identifier and function name that references whether the command is enabled.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub New ( _
    commandId As String, _
    getMenuXmlFunctionName As String, _
    enabledStatement As String _
)
'Usage
Dim commandId As String
Dim getMenuXmlFunctionName As String
Dim enabledStatement As String

Dim instance As New SPRibbonPopulateQueryCommand(commandId, _
    getMenuXmlFunctionName, enabledStatement)
public SPRibbonPopulateQueryCommand(
    string commandId,
    string getMenuXmlFunctionName,
    string enabledStatement
)

Parameters

  • getMenuXmlFunctionName
    Type: System.String

    The name of the JavaScript function that gets the XML string for a ribbon menu.

  • enabledStatement
    Type: System.String

    The JavaScript code that is executed to determine whether the command should be enabled.

See also

Reference

SPRibbonPopulateQueryCommand class

SPRibbonPopulateQueryCommand members

SPRibbonPopulateQueryCommand overload

Microsoft.SharePoint.WebControls namespace