Edit

Share via


CommandResult.Dismiss() Method

Definition

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.

Returns

A CommandResult instance.

Example

See Command Results for an example of how to use this.