PushNotificationChannel Klasse

Definition

Stellt einen Pushbenachrichtigungskanal dar.

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
Vererbung
Object Platform::Object IInspectable PushNotificationChannel
Attribute

Hinweise

Fordern Sie einen Pushbenachrichtigungskanal an, indem Sie CreateChannelAsync aufrufen und die Anwendungs-ID von Azure Active Directory (AAD) für Ihre App übergeben. Übergeben Sie nach erfolgreichem Abschluss den Wert der URI-Eigenschaft an Ihren Clouddienst. Ihr Clouddienst verwendet diesen URI, um eine Benachrichtigungsanforderung an den Windows-Pushbenachrichtigungsdienst (WNS) zu senden, um anzufordern, dass eine Pushbenachrichtigung an das Gerät gesendet wird, wobei das PushReceived-Ereignis aufgerufen wird.

Eigenschaften

ExpirationTime

Ruft die Ablaufzeit des Pushbenachrichtigungskanals ab, nach der ein neuer Kanal mit CreateChannelAsync angefordert werden muss.

Uri

Ruft den URI ab, der den Pushbenachrichtigungskanal darstellt.

Methoden

Close()

Schließt den Pushbenachrichtigungskanal, nach dem ein neuer Kanal mit [CreateChannelAsync](xref:Microsoft.Windows.PushNotifications.PushNotificationManager.CreateChannelAsync(System.Guid) angefordert werden muss.

Gilt für: