Edit

CommandProvider.GetCommand(String) Method

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

The GetCommand method retrieves a command by its unique identifier. This method is used to access a specific command within the command provider, allowing for operations such as executing or updating the command.

Parameters

id String

The unique identifier of the command to retrieve. This identifier is used to locate the specific command within the command provider's collection of commands.

Returns

An ICommand object representing the command with the specified identifier. If no command with the specified identifier exists, this method returns null.