// Summary: // Provides the reason that a toast notification is no longer displayed on-screen. [DualApiPartition(version = 100794368)] [Version(100794368)] public sealed class ToastDismissedEventArgs { // Summary: // Gets the reason that a toast notification is no longer displayed on-screen. // // Returns: // One of the enumeration values that specify why a toast is no longer being // shown. public ToastDismissalReason Reason { get; } } // Summary: // Specifies the reason that a toast notification is no longer being shown. [Version(100794368)] public enum ToastDismissalReason { // Summary: // The user dismissed the toast notification. UserCanceled = 0, // // Summary: // The app explicitly hid the toast notification by calling the ToastNotifier.hide // method. ApplicationHidden = 1, // // Summary: // The toast notification had been shown for the maximum allowed time and was // faded out. The maximum time to show a toast notification is 7 seconds except // in the case of long-duration toasts, in which case it is 25 seconds. TimedOut = 2, } // Summary: // Provides the error code that was generated in the process of raising a toast // notification. [DualApiPartition(version = 100794368)] [Version(100794368)] public sealed class ToastFailedEventArgs { // Summary: // Gets the error code that was generated in the process of raising a toast // notification. // // Returns: // One of the standard system error codes. public Exception ErrorCode { get; } }