Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 973 Bytes

File metadata and controls

25 lines (16 loc) · 973 Bytes
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
PowerToys
Windows
Insider

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.