This topic has not yet been rated - Rate this topic

PushNotificationChannel.ExpirationTime | expirationTime property

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

Syntax


public DateTimeOffset ExpirationTime { get; }

Property value

Type: Date [JavaScript] | System.DateTimeOffset [.NET] | Windows::Foundation::DateTime [C++]

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

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.Networking.PushNotifications
Windows::Networking::PushNotifications [C++]

Metadata

Windows.winmd

Capabilities

internetClient

See also

PushNotificationChannel
Push notification overview
Push and periodic notifications sample
Quickstart: Sending a tile push notification
Quickstart: Sending a toast push notification
How to update a badge through push notifications
How to authenticate with the Windows Push Notification Service (WNS)
How to request, create, and save a notification channel
Guidelines and checklist for push notifications
Push notification service request and response headers

 

 

Build date: 12/4/2012

© 2013 Microsoft. All rights reserved.