menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MessageSeverity - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MessageSeverity

    Specifies the type of severity to display the message with distinctive icons and colors in the SfMessage component.

    Inheritance
    System.Object
    MessageSeverity
    Namespace: Syncfusion.Blazor.Notifications
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class MessageSeverity : Enum
    Remarks

    The MessageSeverity enumeration provides predefined severity levels that control the visual appearance of messages. Each severity level is associated with specific icons, colors, and styling to effectively communicate the message context to users.

    Examples

    Using different message severities in an SfMessage component.

    <SfMessage Severity="MessageSeverity.Success" Content="Operation completed successfully!" />
    <SfMessage Severity="MessageSeverity.Error" Content="An error occurred during processing." />
    <SfMessage Severity="MessageSeverity.Warning" Content="Please review the following items." />

    Fields

    Error

    The message is displayed with icons and colors to denote it as an error message.

    Declaration
    public const MessageSeverity Error
    Field Value
    Type
    MessageSeverity
    Remarks

    This severity level is used to indicate errors or critical issues that need immediate attention, typically displayed with red colors and error icons.

    Info

    The message is displayed with icons and colors to denote it as informational content.

    Declaration
    public const MessageSeverity Info
    Field Value
    Type
    MessageSeverity
    Remarks

    This severity level is used for providing information to users, typically displayed with blue colors and information icons.

    Normal

    The message is displayed with icons and colors for the normal severity level.

    Declaration
    public const MessageSeverity Normal
    Field Value
    Type
    MessageSeverity
    Remarks

    This is the default severity level that displays messages with neutral styling, typically used for general information or status updates.

    Success

    The message is displayed with icons and colors for the success severity level.

    Declaration
    public const MessageSeverity Success
    Field Value
    Type
    MessageSeverity
    Remarks

    This severity level is used to indicate successful operations or positive outcomes, typically displayed with green colors and success icons.

    Warning

    The message is displayed with icons and colors to denote it as a warning message.

    Declaration
    public const MessageSeverity Warning
    Field Value
    Type
    MessageSeverity
    Remarks

    This severity level is used to alert users about potential issues or important information that requires attention, typically displayed with orange/yellow colors and warning icons.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved