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
commandId
Type: System.StringThe identifier of the command.
getMenuXmlFunctionName
Type: System.StringThe name of the JavaScript function that gets the XML string for a ribbon menu.
enabledStatement
Type: System.StringThe JavaScript code that is executed to determine whether the command should be enabled.
See also
Reference
SPRibbonPopulateQueryCommand class
SPRibbonPopulateQueryCommand members