Specifies the duration of the WinForms Alert, ASP.NET and Blazor notification display in milliseconds.
An integer which specifies the duration of the WinForms Alert and ASP.NET and Blazor notification (in milliseconds).
A notification message window is closed when this duration time is up or when a user clicks the message.
The default value is
3000. If the Duration is set to
int.MaxValue, the notification does not close automatically.
- In Blazor applications: if the Duration is less than
0, the default value is used.
- In Winforms and ASP.NET applications: if the Duration is less than
0, the notification message is closed immediately.