DialogResult
The DialogResult enum represents the possible user responses to a dialog prompt. This enum is used to handle user interactions with confirmation dialogs and similar interface elements.
enum DialogResult
{
    Yes = "Yes",
    No = "No",
    Cancel = "Cancel",
}
Values
Yes: Indicates that the user confirmed or accepted the dialog prompt.No: Indicates that the user declined or rejected the dialog prompt.Cancel: Indicates that the user canceled the operation associated with the dialog.
Usage
The DialogResult enum is typically returned by dialog-related functions to indicate which button or option the user selected.