Skip to main content

ICommandManager Interface

Namespace: NextDesign.Desktop

Description

Manages commands added and registered by extensions, and system commands provided by applications.

Belonging Area

NameDescription
CommandsA group of APIs to access commands received by the command handler.

Property

NameDescription
AllCommandsList of commands

Method

NameDescription
CanExecuteCommandChecks whether the command with the specified identifier can be executed.
Returns true if it can be executed.
This method is used to determine whether or not an Extension can execute another Extension.
CreateCommandParamsCreates command parameters.
ExecuteCommandExecutes the command with the specified identifier.
This method is used when executing another extension from an extension.
You can also execute it without specifying a command parameter if one is not required.
GetCommandGets the command with the specified identifier.

Command identifiers are unique across the entire application.
Command identifiers registered in extensions should be unique according to a naming rule such as $\{extension name\}.$\{command name\}.