หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
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