Back to Devexpress

ToastNotificationsManager.Failed Event

windowsforms-devexpress-dot-xtrabars-dot-toastnotifications-dot-toastnotificationsmanager-d1fe68aa.md

latest2.0 KB
Original Source

ToastNotificationsManager.Failed Event

Raises when user settings prevent notifications from being delivered.

Namespace : DevExpress.XtraBars.ToastNotifications

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Behavior")]
public event EventHandler<ToastNotificationFailedEventArgs> Failed
vb
<DXCategory("Behavior")>
Public Event Failed As EventHandler(Of ToastNotificationFailedEventArgs)

Event Data

The Failed event's data class is DevExpress.XtraBars.ToastNotifications.ToastNotificationFailedEventArgs.

Remarks

The Failed event is raised when the WPN_E_NOTIFICATION_DISABLED COM error occurs. See this article for more information: COM Error Codes. This happens when a user’s operating system settings block notifications from your app.

The Failed event allows you to display alternative notifications (for example, traditional Alert Windows) if toast notifications are not available.

See Also

ThrowOnErrors

ToastNotificationsManager Class

ToastNotificationsManager Members

DevExpress.XtraBars.ToastNotifications Namespace