Partilhar via


CUI.Page.CommandDispatcher.callCommandHandlerForEnabled(handler, commandId) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Remarks
Applies To

Determines whether the specified command handler can execute the command with the specified ID.

var value = CUI.Page.CommandDispatcher.callCommandHandlerForEnabled(handler, commandId);

Parameters

handler

Type: CUI.Page.ICommandHandler

The handler that could execute the command.

commandId

Type: String

The ID of the command to execute.

Return Value

Type: boolean

true if the command can be executed by the handler; otherwise, false.

Remarks

This method determines whether a command handler is registered to handle the specified command.

Applies To

CUI.Page.CommandDispatcher Class

See Also

Reference

CUI.Page.CommandDispatcher Methods

CUI.Page Namespace