Edit

Share via


ICommandProvider.GetCommand(String) Method

Definition

Namespace: Microsoft.CommandPalette.Extensions

The GetCommand method is used to retrieve a command by its ID. This method is used to get a command that has been registered with the Command Palette.

Parameters

id String

The ID of the command to retrieve. The ID is a unique identifier for the command and is used to identify the command in the Command Palette.

Returns

An ICommand that contains the command that was registered with the Command Palette. If the command is not found, this method returns null.