Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.46 KB

File metadata and controls

37 lines (25 loc) · 1.46 KB
title FallbackCommandItem Class
description The FallbackCommandItem class is used to create a command item that serves as a fallback option in the command palette.
ms.date 2/25/2025
ms.topic reference
no-loc
PowerToys
Windows
Insider

FallbackCommandItem Class

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.