ToastNotification.ExpirationTime ToastNotification.ExpirationTime ToastNotification.ExpirationTime ToastNotification.ExpirationTime ToastNotification.ExpirationTime Property

Definition

Gets or sets the time after which a toast notification should not be displayed.

public : IReference<DateTime> ExpirationTime { get; set; }
IReference<DateTime> ExpirationTime();

void ExpirationTime(IReference<DateTime> expirationtime);
public Nullable<DateTimeOffset> ExpirationTime { get; set; }
Public ReadWrite Property ExpirationTime As Nullable<DateTimeOffset>
var nullable = toastNotification.expirationTime;
toastNotification.expirationTime = nullable;

Property Value

Nullable<DateTimeOffset> Nullable<DateTimeOffset> Nullable<DateTimeOffset>

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.

For Windows Phone 8.x app: this property also causes the toast notification to be removed from the action center once the specified date and time is reached.

See also