# NotificationMessage Class

Class NotificationMessage.

Namespace: [Radzen](https://blazor.radzen.com/docs/api/Radzen.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- NotificationMessage

## Syntax

```csharp
public class NotificationMessage
```

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public NotificationMessage()` | Class NotificationMessage. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| Click | `Action<NotificationMessage>` | Gets or sets the click event. |
| Close | `Action<NotificationMessage>` | Get or set the event for when the notification is closed |
| CloseAriaLabel | `string` | Gets or sets the close button aria-label. When not set a localized default is used. |
| CloseOnClick | `bool` | Gets or sets click on close action. |
| Detail | `string` | Gets or sets the detail. |
| DetailContent | `RenderFragment<NotificationService>` | Gets or sets the detail content. |
| Duration | `double?` | Gets or sets the duration. |
| Payload | `object` | Gets or sets notification payload. |
| Severity | [`NotificationSeverity`](https://blazor.radzen.com/docs/api/Radzen.NotificationSeverity.md) | Gets or sets the severity. |
| ShowProgress | `bool` | Gets or sets if progress should be shown during duration. |
| Style | `string` | Gets or sets the style. |
| Summary | `string` | Gets or sets the summary. |
| SummaryContent | `RenderFragment<NotificationService>` | Gets or sets the summary content. |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `Equals(NotificationMessage other)` | `bool` | Check if NotificationMessage instance is equal to current instance. |
| `Equals(object obj)` | `bool` | Check if NotificationMessage instance is equal to current instance. |
| `GetHashCode()` | `int` | Return a hash code for the current object |

## Operators

| Operator | Returns | Description |
|------|---------|-------------|
| `operator !=(NotificationMessage message, NotificationMessage otherMessage)` | `bool` |  |
| `operator ==(NotificationMessage message, NotificationMessage otherMessage)` | `bool` |  |

