Edit

Share via


ConfirmationArgs Class

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Implements IConfirmationArgs

The ConfirmationArgs class is used to create a confirmation dialog in the Command Palette. It allows you to specify the details for the confirmation dialog. This class is useful when you want to prompt the user for confirmation before executing a potentially destructive action.

Properties

Property Type Description
Description String Gets or sets the description of the confirmation dialog.
IsPrimaryCommandCritical Boolean Gets or sets if the primary command is critical.
PrimaryCommand ICommand Gets or sets the primary action command to be executed when the user confirms the dialog.
Title String Gets or sets the title of the confirmation dialog.