PushNotificationChannel.ExpirationTime Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.