Compartilhar via


CUI.Page.CommandDispatcher.executeCommand(commandId, properties) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Remarks
Applies To

Executes the command with the specified ID on all of the registered command handlers that can execute the command.

var value = CUI.Page.CommandDispatcher.executeCommand(commandId, properties);

Parameters

commandId

Type: String

The ID of the command to execute.

properties

Type: Object

The name/value pairs of the properties of the command that is to be executed. The object property names are the names of the properties; the object property values are the values of the properties.

Return Value

Type: boolean

true if one or more command handlers executed the command successfully; otherwise, false.

Remarks

This method returns true if at least one handler executed the command.

Applies To

CUI.Page.CommandDispatcher Class

See Also

Reference

CUI.Page.CommandDispatcher Methods

CUI.Page Namespace