| title | CommandResult.Dismiss() Method | |||
|---|---|---|---|---|
| description | The Dismiss method creates a new CommandResult instance with its Kind property set to CommandResultKind.Dismiss and its Args set to null. | |||
| ms.date | 2/10/2025 | |||
| ms.topic | reference | |||
| no-loc |
|
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
Close the Command Palette after the action is executed and dismiss the current state. On the next launch, the Command Palette will start from the main page with a blank query.
Creates a new CommandResult instance with its Kind property set to CommandResultKind.Dismiss.
A CommandResult instance.
See Command Results for an example of how to use this.