SPRibbonPostBackCommand Constructor (String, IPostBackEventHandler, String)
Initializes a new instance of the SPRibbonPostBackCommand class using the specified command, event handler, and ECMA script.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub New ( _
commandId As String, _
eventHandler As IPostBackEventHandler, _
enabledStatement As String _
)
'Usage
Dim commandId As String
Dim eventHandler As IPostBackEventHandler
Dim enabledStatement As String
Dim instance As New SPRibbonPostBackCommand(commandId, _
eventHandler, enabledStatement)
public SPRibbonPostBackCommand(
string commandId,
IPostBackEventHandler eventHandler,
string enabledStatement
)
Parameters
commandId
Type: System.StringA string that contains the command identifier.
eventHandler
Type: System.Web.UI.IPostBackEventHandlerAn IPostBackEventHandler interface object that handles postback events.
enabledStatement
Type: System.StringA string that contains ECMAScript code that is executed to determine whether the command should be enabled.
See Also
Reference
SPRibbonPostBackCommand Members