Share via


PushNotificationChannel.ExpirationTime Property

Definition

Gets the time at which the channel expires. Notifications sent to this channel after this time are rejected.

public:
 property DateTime ExpirationTime { DateTime get(); };
DateTime ExpirationTime();
public System.DateTimeOffset ExpirationTime { get; }
var dateTime = pushNotificationChannel.expirationTime;
Public ReadOnly Property ExpirationTime As DateTimeOffset

Property Value

The time at which the channel expires. Notifications sent to this channel after this time are rejected.

Windows requirements

App capabilities
internetClient

Remarks

To prevent a channel from expiring, apps should request a new push notification channel every time that the app is run.

An expired channel behaves as though it was closed. Because channels cannot be renewed, after a channel expires, a secondary tile or application must request a new push notification channel.

Applies to

See also