Table of Contents

Class NotificationMessage

Namespace
Radzen
Assembly
Radzen.Blazor.dll

Class NotificationMessage.

public class NotificationMessage : IEquatable<NotificationMessage>
Inheritance
NotificationMessage
Implements
Inherited Members

Constructors

NotificationMessage()

public NotificationMessage()

Properties

Click

Gets or sets the click event.

public Action<NotificationMessage> Click { get; set; }

Property Value

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

public Action<NotificationMessage> Close { get; set; }

Property Value

Action<NotificationMessage>

CloseOnClick

Gets or sets click on close action.

public bool CloseOnClick { get; set; }

Property Value

bool

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

Detail

Gets or sets the detail.

public string Detail { get; set; }

Property Value

string

The detail.

DetailContent

Gets or sets the detail content.

public RenderFragment<NotificationService> DetailContent { get; set; }

Property Value

RenderFragment<NotificationService>

The detail content.

Duration

Gets or sets the duration.

public double? Duration { get; set; }

Property Value

double?

The duration.

Payload

Gets or sets notification payload.

public object Payload { get; set; }

Property Value

object

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

Severity

Gets or sets the severity.

public NotificationSeverity Severity { get; set; }

Property Value

NotificationSeverity

The severity.

Style

Gets or sets the style.

public string Style { get; set; }

Property Value

string

The style.

Summary

Gets or sets the summary.

public string Summary { get; set; }

Property Value

string

The summary.

SummaryContent

Gets or sets the summary content.

public RenderFragment<NotificationService> SummaryContent { get; set; }

Property Value

RenderFragment<NotificationService>

The summary content.

Methods

Equals(NotificationMessage)

Check if NotificationMessage instance is equal to current instance.

public bool Equals(NotificationMessage other)

Parameters

other NotificationMessage

Returns

bool

Equals(object)

Check if object instance is equal to current instance.

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

Return a hash code for the current object

public override int GetHashCode()

Returns

int

Operators

operator ==(NotificationMessage, NotificationMessage)

Overloading == operator for NotificationMessage.

public static bool operator ==(NotificationMessage message, NotificationMessage otherMessage)

Parameters

message NotificationMessage
otherMessage NotificationMessage

Returns

bool

operator !=(NotificationMessage, NotificationMessage)

Overloading != operator for NotificationMessage.

public static bool operator !=(NotificationMessage message, NotificationMessage otherMessage)

Parameters

message NotificationMessage
otherMessage NotificationMessage

Returns

bool