Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class NotificationMessage

    Class NotificationMessage.

    Inheritance
    System.Object
    NotificationMessage
    Namespace: Radzen
    Assembly: Radzen.Blazor.dll
    Syntax
    public class NotificationMessage : IEquatable<NotificationMessage>

    Properties

    Click

    Gets or sets the click event.

    Declaration
    public Action<NotificationMessage> Click { get; set; }
    Property Value
    Type Description
    Action<NotificationMessage>

    This event handler is called when the notification is clicked on.

    Close

    Get or set the event for when the notification is closed

    Declaration
    public Action<NotificationMessage> Close { get; set; }
    Property Value
    Type Description
    Action<NotificationMessage>

    CloseOnClick

    Gets or sets click on close action.

    Declaration
    public bool CloseOnClick { get; set; }
    Property Value
    Type Description
    System.Boolean

    If true, then the notification will be closed when clicked on.

    Detail

    Gets or sets the detail.

    Declaration
    public string Detail { get; set; }
    Property Value
    Type Description
    System.String

    The detail.

    DetailContent

    Gets or sets the detail content.

    Declaration
    public RenderFragment<NotificationService> DetailContent { get; set; }
    Property Value
    Type Description
    RenderFragment<NotificationService>

    The detail content.

    Duration

    Gets or sets the duration.

    Declaration
    public double? Duration { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Double>

    The duration.

    Payload

    Gets or sets notification payload.

    Declaration
    public object Payload { get; set; }
    Property Value
    Type Description
    System.Object

    Used to store a custom payload that can be retreived later in the click event handler.

    Severity

    Gets or sets the severity.

    Declaration
    public NotificationSeverity Severity { get; set; }
    Property Value
    Type Description
    NotificationSeverity

    The severity.

    ShowProgress

    Gets or sets if progress should be shown during duration.

    Declaration
    public bool ShowProgress { get; set; }
    Property Value
    Type Description
    System.Boolean

    If true, then the progress will be shown during duration.

    Style

    Gets or sets the style.

    Declaration
    public string Style { get; set; }
    Property Value
    Type Description
    System.String

    The style.

    Summary

    Gets or sets the summary.

    Declaration
    public string Summary { get; set; }
    Property Value
    Type Description
    System.String

    The summary.

    SummaryContent

    Gets or sets the summary content.

    Declaration
    public RenderFragment<NotificationService> SummaryContent { get; set; }
    Property Value
    Type Description
    RenderFragment<NotificationService>

    The summary content.

    Methods

    Equals(NotificationMessage)

    Check if NotificationMessage instance is equal to current instance.

    Declaration
    public bool Equals(NotificationMessage other)
    Parameters
    Type Name Description
    NotificationMessage other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

    Check if object instance is equal to current instance.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean

    GetHashCode()

    Return a hash code for the current object

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    Operators

    Equality(NotificationMessage, NotificationMessage)

    Overloading == operator for NotificationMessage.

    Declaration
    public static bool operator ==(NotificationMessage message, NotificationMessage otherMessage)
    Parameters
    Type Name Description
    NotificationMessage message
    NotificationMessage otherMessage
    Returns
    Type Description
    System.Boolean

    Inequality(NotificationMessage, NotificationMessage)

    Overloading != operator for NotificationMessage.

    Declaration
    public static bool operator !=(NotificationMessage message, NotificationMessage otherMessage)
    Parameters
    Type Name Description
    NotificationMessage message
    NotificationMessage otherMessage
    Returns
    Type Description
    System.Boolean

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT