ToastNotification(Object, Image, String, String, String, ToastNotificationSound, ToastNotificationDuration, ToastNotificationTemplate) Constructor

Initializes a new instance of the ToastNotification class with the specified settings.

Namespace: DevExpress.XtraBars.ToastNotifications

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

public ToastNotification(
    object id,
    Image image,
    string header,
    string body,
    string body2,
    ToastNotificationSound sound,
    ToastNotificationDuration duration,
    ToastNotificationTemplate template
)
Public Sub New(
    id As Object,
    image As Image,
    header As String,
    body As String,
    body2 As String,
    sound As ToastNotificationSound,
    duration As ToastNotificationDuration,
    template As ToastNotificationTemplate
)

Parameters

Name Type Description
id Object

An Object that is the newly created ToastNotification's ID.

image Image

An Image that is the newly created ToastNotification's image.

header String

A String value that is the newly created ToastNotification's header.

body String

A String value that is the ToastNotification.Body property value.

body2 String

A String value that is the ToastNotification.Body2 property value.

sound ToastNotificationSound

A ToastNotificationSound object that is the ToastNotification.Sound property value.

duration ToastNotificationDuration

A ToastNotificationDuration object that is the ToastNotification.Duration property value.

template ToastNotificationTemplate

A ToastNotificationTemplate enumerator value that specifies the newly created ToastNotification's template.

See Also