Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Windows developer