Partilhar via


SPRibbonPostBackCommand Constructor (String, IPostBackEventHandler, String, Object[], Type , String)

Initializes a new instance of the SPRibbonPostBackCommand class using the specified command, event handler, event, event arguments, known types that may be present in the object graph. 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, _
    eventId As String, _
    eventArgs As Object(), _
    knownTypes As Type(), _
    enabledStatement As String _
)
'Usage
Dim commandId As String
Dim eventHandler As IPostBackEventHandler
Dim eventId As String
Dim eventArgs As Object()
Dim knownTypes As Type()
Dim enabledStatement As String

Dim instance As New SPRibbonPostBackCommand(commandId, _
    eventHandler, eventId, eventArgs, _
    knownTypes, enabledStatement)
public SPRibbonPostBackCommand(
    string commandId,
    IPostBackEventHandler eventHandler,
    string eventId,
    Object[] eventArgs,
    Type[] knownTypes,
    string enabledStatement
)

Parameters

  • commandId
    Type: System.String

    A string that contains the command identifier.

  • eventId
    Type: System.String

    A string that contains the event identifier.

  • eventArgs
    Type: []

    An Object array that contains the arguments for the event.

  • knownTypes
    Type: []

    A Type array that contains the known types that may be present.

  • enabledStatement
    Type: System.String

    A string that contains ECMAScript code that is executed to determine whether the command should be enabled.

See Also

Reference

SPRibbonPostBackCommand Class

SPRibbonPostBackCommand Members

SPRibbonPostBackCommand Overload

Microsoft.SharePoint.WebControls Namespace