Skip to main content

GetCommandName

Description​

Resolves the name that has been associated with the given command id.

Syntax​

// shellFrame points here into the IShellFrame interface
const result = await shellFrame.Commands.GetCommandName(commandId);

Parameters​

NameOptionalityTypeDescription
commandIdRequirednumberThe command id. Can be a builtin command, enumerated value or custom command id.

Return type​

TypeDescription
Promise < string >Returns the name of the command.

Exceptions​

ArgumentError - When commandId is null or undefined.

NotFoundError - When the command is not found or access is denied.