File: System\Windows\Forms\Dialogs\MessageBoxIcon.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;
 
public enum MessageBoxIcon
{
    /// <summary>
    ///  Specifies that the message box contain no symbols.
    /// </summary>
    None = 0,
 
    /// <summary>
    ///  Specifies that the message box contains a hand symbol.
    /// </summary>
    Hand = (int)MESSAGEBOX_STYLE.MB_ICONHAND,
 
    /// <summary>
    ///  Specifies that the message box contains a question mark symbol.
    /// </summary>
    Question = (int)MESSAGEBOX_STYLE.MB_ICONQUESTION,
 
    /// <summary>
    ///  Specifies that the message box contains an exclamation symbol.
    /// </summary>
    Exclamation = (int)MESSAGEBOX_STYLE.MB_ICONEXCLAMATION,
 
    /// <summary>
    ///  Specifies that the message box contains an asterisk symbol.
    /// </summary>
    Asterisk = (int)MESSAGEBOX_STYLE.MB_ICONASTERISK,
 
    /// <summary>
    ///  Specifies that the message box contains a hand icon. This field is constant.
    /// </summary>
    Stop = Hand,
 
    /// <summary>
    ///  Specifies that the message box contains a hand icon.
    /// </summary>
    Error = Hand,
 
    /// <summary>
    ///  Specifies that the message box contains an exclamation icon.
    /// </summary>
    Warning = Exclamation,
 
    /// <summary>
    ///  Specifies that the message box contains an asterisk icon.
    /// </summary>
    Information = Asterisk,
}