BadgeNotification.ExpirationTime BadgeNotification.ExpirationTime BadgeNotification.ExpirationTime BadgeNotification.ExpirationTime BadgeNotification.ExpirationTime Property

Definition

Gets or sets the time that Windows will remove the badge from the tile. By default, local badge notifications do not expire and push, periodic, and scheduled badge notifications expire after three days. It is a best practice to explicitly set an expiration time to avoid stale content.

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 = badgeNotification.expirationTime;
badgeNotification.expirationTime = nullable;

Property Value

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

The date and time that the notification should be removed.

See also