PushNotificationChannel Class
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.
Represents a push notification channel.
public ref class PushNotificationChannel sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.PushNotifications.PushNotificationsContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PushNotificationChannel final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.PushNotifications.PushNotificationsContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PushNotificationChannel
Public NotInheritable Class PushNotificationChannel
- Inheritance
- Attributes
Remarks
Request a push notification channel by calling CreateChannelAsync), passing in the Azure Active Directory (AAD) application ID for your app. Upon successful completion, pass the value of the Uri property to your cloud service. Your cloud service uses this URI to send a notification request to the Windows Push Notification Service (WNS) to request for a push notification to be sent to the device, invoking PushReceived event.
Properties
ExpirationTime |
Gets the expiration time of the push notification channel, after which a new channel must be requested with CreateChannelAsync). |
Uri |
Gets the URI representing the push notification channel. |
Methods
Close() |
Closes the push notification channel, after which a new channel must be requested with CreateChannelAsync |