Gets or sets the time after which a toast notification should not be displayed.
Syntax
public Nullable<DateTimeOffset> ExpirationTime { get; set; }
Property value
Type: IReference<DateTime> [JavaScript/C++] | System.Nullable<DateTime> [.NET]
The date and time after which the toast is no longer considered current or valid and should not be displayed.
Remarks
Windows attempts to raise toast notifications immediately after you call Show, so this property is rarely used.
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
- ToastNotification
- Toast notifications sample
- Sending toast notifications from desktop apps sample
- Toast XML schema
- Toast notification overview
- Quickstart: Sending a toast notification
- Quickstart: Sending a toast push notification
- Quickstart: Sending a toast notification from the desktop
- Guidelines and checklist for toast notifications
- How to handle activation from a toast notification
- How to opt in for toast notifications
- How to schedule a toast notification
- How to enable desktop toast notifications through an AppUserModelID
- The toast template catalog
- Toast audio options
Build date: 12/4/2012