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.ControlA [System.Web.UI.Control] object that represents the control that is registering the function.
functionName
Type: System.StringA string that contains the name of the function.
commands
Type: System.Collections.Generic.IEnumerable<IRibbonCommand>A collection that contains the commands to include in the function.