PushNotificationChannel Classe

Définition

Représente un canal de notification Push.

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
Héritage
Object Platform::Object IInspectable PushNotificationChannel
Attributs

Remarques

Demandez un canal de notification Push en appelant CreateChannelAsync, en passant l’ID d’application Azure Active Directory (AAD) pour votre application. Une fois l’opération terminée, transmettez la valeur de la propriété URI à votre service cloud. Votre service cloud utilise cet URI pour envoyer une demande de notification au service de notification Push Windows (WNS) afin de demander l’envoi d’une notification Push à l’appareil, appelant l’événement PushReceived .

Propriétés

ExpirationTime

Obtient l’heure d’expiration du canal de notification Push, après quoi un nouveau canal doit être demandé avec CreateChannelAsync.

Uri

Obtient l’URI représentant le canal de notification Push.

Méthodes

Close()

Ferme le canal de notification Push, après quoi un nouveau canal doit être demandé avec [CreateChannelAsync](xref:Microsoft.Windows.PushNotifications.PushNotifications.PushNotificationManager.CreateChannelAsync(System.Guid)

S’applique à