Share via


SPRibbonScriptManager.RegisterHandleCommandFunction Method

Registers to a specific control an ECMAScript function that handles a collection of commands.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub RegisterHandleCommandFunction ( _
    control As Control, _
    functionName As String, _
    commands As IEnumerable(Of IRibbonCommand) _
)
'Usage
Dim instance As SPRibbonScriptManager
Dim control As Control
Dim functionName As String
Dim commands As IEnumerable(Of IRibbonCommand)

instance.RegisterHandleCommandFunction(control, _
    functionName, commands)
public void RegisterHandleCommandFunction(
    Control control,
    string functionName,
    IEnumerable<IRibbonCommand> commands
)

Parameters

  • control
    Type: System.Web.UI.Control

    A [System.Web.UI.Control] object that represents the control that is registering the function.

  • functionName
    Type: System.String

    A string that contains the name of the function.

See Also

Reference

SPRibbonScriptManager Class

SPRibbonScriptManager Members

Microsoft.SharePoint.WebControls Namespace