MessageOptions.Duration Property
Specifies the duration of the WinForms Alert, ASP.NET and Blazor notification display in milliseconds.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v20.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
Int32 | An integer which specifies the duration of the WinForms Alert and ASP.NET and Blazor notification (in milliseconds). |
Remarks
A notification message window is closed when this duration time is up or when a user clicks the message.
This property has no effect in WinForms applications with Flyout or Toast notifications.
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.
See Also