Partilhar 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)
Available in Sandboxed Solutions: No

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