NotificationMessage Class

Class NotificationMessage.

Inheritance

Object

NotificationMessage

Namespace: Radzen

Assembly: Radzen.Blazor.dll

Syntax

public class NotificationMessage

Constructors

NotificationMessagelink

Class NotificationMessage.

Declaration
public NotificationMessage()

Properties

Clicklink

Gets or sets the click event.

Declaration
public Action<NotificationMessage> Click { get; set; }
Property Value
Type Description
Action<NotificationMessage>Gets or sets the click event.

Closelink

Get or set the event for when the notification is closed

Declaration
public Action<NotificationMessage> Close { get; set; }
Property Value
Type Description
Action<NotificationMessage>Get or set the event for when the notification is closed

CloseAriaLabellink

Gets or sets the close button aria-label.

Declaration
public string CloseAriaLabel { get; set; }
Property Value
Type Description
stringGets or sets the close button aria-label.

CloseOnClicklink

Gets or sets click on close action.

Declaration
public bool CloseOnClick { get; set; }
Property Value
Type Description
boolGets or sets click on close action.

Detaillink

Gets or sets the detail.

Declaration
public string Detail { get; set; }
Property Value
Type Description
stringGets or sets the detail.

DetailContentlink

Gets or sets the detail content.

Declaration
public RenderFragment<NotificationService> DetailContent { get; set; }
Property Value
Type Description
RenderFragment<NotificationService>Gets or sets the detail content.

Durationlink

Gets or sets the duration.

Declaration
public double? Duration { get; set; }
Property Value
Type Description
double?Gets or sets the duration.

Payloadlink

Gets or sets notification payload.

Declaration
public object Payload { get; set; }
Property Value
Type Description
objectGets or sets notification payload.

Severitylink

Gets or sets the severity.

Declaration
public NotificationSeverity Severity { get; set; }
Property Value
Type Description
NotificationSeverityGets or sets the severity.

ShowProgresslink

Gets or sets if progress should be shown during duration.

Declaration
public bool ShowProgress { get; set; }
Property Value
Type Description
boolGets or sets if progress should be shown during duration.

Stylelink

Gets or sets the style.

Declaration
public string Style { get; set; }
Property Value
Type Description
stringGets or sets the style.

Summarylink

Gets or sets the summary.

Declaration
public string Summary { get; set; }
Property Value
Type Description
stringGets or sets the summary.

SummaryContentlink

Gets or sets the summary content.

Declaration
public RenderFragment<NotificationService> SummaryContent { get; set; }
Property Value
Type Description
RenderFragment<NotificationService>Gets or sets the summary content.

Methods

Equalslink

Check if NotificationMessage instance is equal to current instance.

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

Equalslink

Check if NotificationMessage instance is equal to current instance.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool

GetHashCodelink

Return a hash code for the current object

Declaration
public override int GetHashCode()
Returns
Type Description
int

Operators

operator !=link

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

operator ==link

Declaration
public static bool operator ==(NotificationMessage message, NotificationMessage otherMessage)
Parameters
Type Name Description
NotificationMessage message
NotificationMessage otherMessage
Returns
Type Description
bool
An error has occurred. This app may no longer respond until reloaded. Reload 🗙