Edit

Share via


ICommand Interface

Definition

Namespace: Microsoft.CommandPalette.Extensions

Action a user can take within the Command Palette.

Properties

Property Type Description
Icon IIconInfo Gets the icon of the command.
Id String Gets the ID of the command. This is optional but can help support more efficient command lookup in ICommandProvider.GetCommand().
Name String Gets the name of the command.

Example

See the Add a command page for an example of how to use this interface.