File: System\Windows\Forms\Dialogs\TaskDialog\TaskDialogResult.cs
Web Access
Project: src\src\System.Windows.Forms\src\System.Windows.Forms.csproj (System.Windows.Forms)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace System.Windows.Forms;
 
/// <summary>
///  Specifies identifiers to indicate the return value of a task dialog.
/// </summary>
internal enum TaskDialogResult : int
{
    /// <summary>
    ///  No button was selected.
    /// </summary>
    None = 0,
 
    /// <summary>
    ///  The "OK" button was selected.
    /// </summary>
    OK = MESSAGEBOX_RESULT.IDOK,
 
    /// <summary>
    ///  The "Cancel" button was selected.
    /// </summary>
    Cancel = MESSAGEBOX_RESULT.IDCANCEL,
 
    /// <summary>
    ///  The "Abort" button was selected.
    /// </summary>
    Abort = MESSAGEBOX_RESULT.IDABORT,
 
    /// <summary>
    ///  The "Retry" button was selected.
    /// </summary>
    Retry = MESSAGEBOX_RESULT.IDRETRY,
 
    /// <summary>
    ///  The "Ignore" button was selected.
    /// </summary>
    Ignore = MESSAGEBOX_RESULT.IDIGNORE,
 
    /// <summary>
    ///  The "Yes" button was selected.
    /// </summary>
    Yes = MESSAGEBOX_RESULT.IDYES,
 
    /// <summary>
    ///  The "No" button was selected.
    /// </summary>
    No = MESSAGEBOX_RESULT.IDNO,
 
    /// <summary>
    ///  The "Close" button was selected.
    /// </summary>
    Close = MESSAGEBOX_RESULT.IDCLOSE,
 
    /// <summary>
    ///  The "Help" button was selected.
    /// </summary>
    Help = MESSAGEBOX_RESULT.IDHELP,
 
    /// <summary>
    ///  The "Try Again" button was selected.
    /// </summary>
    TryAgain = MESSAGEBOX_RESULT.IDTRYAGAIN,
 
    /// <summary>
    ///  The "Continue" button was selected.
    /// </summary>
    Continue = MESSAGEBOX_RESULT.IDCONTINUE
}