Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Definition
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
Display a confirmation dialog to the user. The ConfirmationArgs will specify the title, and description for the dialog. The primary button of the dialog will activate the Command. If IsPrimaryCommandCritical is true, the primary button will be red, indicating that it is a destructive action.
Creates a new CommandResult instance with its Kind property set to CommandResultKind.Confirm and its Args set to args.
Parameters
args ConfirmationArgs
The arguments for the command. This should be an instance of ConfirmationArgs that specifies the title and description for the dialog.
Returns
A CommandResult instance.
Example
See Command Results for an example of how to use this.
Windows developer