Skip to main content

ICommandManager interface

Namespace: NextDesign.Desktop

Description

Manage commands that are additionally registered with the extension and system commands provided by the application.

Area you belong to

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

Property

NameDescription
AllCommandsCommand list

Method

NameDescription
CanExecuteCommandChecks whether the command with the specified identifier can be executed.
Returns true if executable.
This method is used to determine whether it is possible to execute another Extension from one Extension.
CreateCommandParamsCreate command parameters.
ExecuteCommandExecutes the command with the specified identifier.
This method is used when executing another Extension from an Extension.
Also, if a command parameter is not required, it can be executed without specifying it.
GetCommandGets the command with the specified identifier.

Command identifiers are unique throughout the application.
Ensure uniqueness for command identifiers registered in extensions using naming rules such as ${extension name}.${command name}.