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:
 property IReference<DateTime> ^ ExpirationTime { IReference<DateTime> ^ get(); void set(IReference<DateTime> ^ value); };
IReference<DateTime> ExpirationTime();

void ExpirationTime(IReference<DateTime> value);
public System.Nullable<System.DateTimeOffset> ExpirationTime { get; set; }
var iReference = badgeNotification.expirationTime;
badgeNotification.expirationTime = iReference;
Public Property ExpirationTime As Nullable(Of DateTimeOffset)

Property Value

The date and time that the notification should be removed.

Applies to

See also