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.Toolkit
Inherits CommandItem
Implements IFallbackCommandItem, IFallbackHandler
The FallbackCommandItem class is used to create a command item that serves as a fallback option in the command palette. It allows you to define a command that will be executed when no other commands match the user's input.
Constructors
| Constructor | Description |
|---|---|
| FallbackCommandItem(ICommand) | Initializes a new instance of the FallbackCommandItem class with the specified command. |
Properties
| Property | Type | Description |
|---|---|---|
| FallbackHandler | IFallbackHandler | Gets or sets the fallback handler that will be used to execute the command. |
Methods
| Method | Description |
|---|---|
| UpdateQuery(String) | Updates the query string for the command item. |
Windows developer