.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

ShowViewStrategyBase.ShowMessage(String, InformationType, Int32, InformationPosition) Method

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public void ShowMessage(
    string message,
    InformationType type = InformationType.Success,
    int displayInterval = 3000,
    InformationPosition position = InformationPosition.Bottom
)
Public Sub ShowMessage(
    message As String,
    type As InformationType = InformationType.Success,
    displayInterval As Integer = 3000,
    position As InformationPosition = InformationPosition.Bottom
)
public void ShowMessage(
    string message,
    InformationType type = InformationType.Success,
    int displayInterval = 3000,
    InformationPosition position = InformationPosition.Bottom
)
Public Sub ShowMessage(
    message As String,
    type As InformationType = InformationType.Success,
    displayInterval As Integer = 3000,
    position As InformationPosition = InformationPosition.Bottom
)
public void ShowMessage(
    string message,
    InformationType type = InformationType.Success,
    int displayInterval = 3000,
    InformationPosition position = InformationPosition.Bottom
)
Public Sub ShowMessage(
    message As String,
    type As InformationType = InformationType.Success,
    displayInterval As Integer = 3000,
    position As InformationPosition = InformationPosition.Bottom
)

Parameters

Name Type Description
message String

A string which is a notification message.

type InformationType

An InformationType value which determines the type of the notification.

displayInterval Int32

An integer which specifies the duration of the notification displaying. The value indicates milliseconds.

position InformationPosition

An InformationPosition value which determines the position of the notification window in an ASP.NET application. In a WinForms application, this parameter is ignored.

Parameters

Name Type Description
message String

A string which is a notification message.

type InformationType

An InformationType value which determines the type of the notification.

displayInterval Int32

An integer which specifies the duration of the notification displaying. The value indicates milliseconds.

position InformationPosition

An InformationPosition value which determines the position of the notification window in an ASP.NET application. In a WinForms application, this parameter is ignored.

Parameters

Name Type Description
message String

A string which is a notification message.

type InformationType

An InformationType value which determines the type of the notification.

displayInterval Int32

An integer which specifies the duration of the notification displaying. The value indicates milliseconds.

position InformationPosition

An InformationPosition value which determines the position of the notification window in an ASP.NET application. In a WinForms application, this parameter is ignored.

Remarks

In a WinForms application, the ShowMessage method displays a Toast Notification. In an ASP.NET application, the dxToast widget is displayed at the specified position.

It is recommended to use another ShowMessage overload which takes the MessageOptions parameter. That overload provides more configuration options.

See Also