Share via


SPRibbonCommandHandler.HandlerCommand property

Gets the client-side handler that is invoked by the ribbon to perform the action.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property HandlerCommand As String
    Get
'Usage
Dim instance As SPRibbonCommandHandler
Dim value As String

value = instance.HandlerCommand
public virtual string HandlerCommand { get; }

Property value

Type: System.String
A string that is empty. Classes inheriting from SPRibbonCommandHandler override this property and set it to the client-side handler.

Remarks

This property executes the ECMAScript (JavaScript, JScript) action on the client when this button is clicked. Examples include a postback or callback reference, or generic ECMAScript (JavaScript, JScript).

See also

Reference

SPRibbonCommandHandler class

SPRibbonCommandHandler members

Microsoft.SharePoint.WebControls namespace