PushNotificationChannelManagerForUser.CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync Méthode

Définition

Surcharges

CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer, String)

Crée un objet lié à une application spécifiée via laquelle vous récupérez un canal de notification Push à partir de Windows Push Notification Services (WNS). L’application spécifiée doit se trouver dans le même package que l’application appelante.

CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer, String, String)

Crée un objet lié à une application spécifiée via laquelle vous récupérez un canal de notification Push à partir de Windows Push Notification Services (WNS). L’application spécifiée doit se trouver dans le même package que l’application appelante.

CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer, String)

Crée un objet lié à une application spécifiée via laquelle vous récupérez un canal de notification Push à partir de Windows Push Notification Services (WNS). L’application spécifiée doit se trouver dans le même package que l’application appelante.

public:
 virtual IAsyncOperation<PushNotificationChannel ^> ^ CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer ^ appServerKey, Platform::String ^ channelId) = CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync;
/// [Windows.Foundation.Metadata.Overload("CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<PushNotificationChannel> CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer const& appServerKey, winrt::hstring const& channelId);
[Windows.Foundation.Metadata.Overload("CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<PushNotificationChannel> CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer appServerKey, string channelId);
function createRawPushNotificationChannelWithAlternateKeyForApplicationAsync(appServerKey, channelId)
Public Function CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync (appServerKey As IBuffer, channelId As String) As IAsyncOperation(Of PushNotificationChannel)

Paramètres

appServerKey
IBuffer

Clé non compressée au format ANSI X9.62. Cette valeur provient de la courbe P-256 définie dans la spécification Secure Hash Standard.

channelId
String

Platform::String

winrt::hstring

ID du canal de notification Push.

Retours

Objet lié au serveur d’applications spécifié dans appServerKey, utilisé pour demander un PushNotificationChannel à WNS.

Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10 Creators Update (introduit dans 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v4.0)

Remarques

Notez que toutes les notifications brutes envoyées sur ce canal auront l’ID de canal attaché avant d’être remises à l’application. Cela permet aux applications de créer plusieurs canaux et de différencier l’endroit d’où proviennent les notifications.

S’applique à

CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer, String, String)

Crée un objet lié à une application spécifiée via laquelle vous récupérez un canal de notification Push à partir de Windows Push Notification Services (WNS). L’application spécifiée doit se trouver dans le même package que l’application appelante.

public:
 virtual IAsyncOperation<PushNotificationChannel ^> ^ CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer ^ appServerKey, Platform::String ^ channelId, Platform::String ^ appId) = CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync;
/// [Windows.Foundation.Metadata.Overload("CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsyncWithId")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<PushNotificationChannel> CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer const& appServerKey, winrt::hstring const& channelId, winrt::hstring const& appId);
[Windows.Foundation.Metadata.Overload("CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsyncWithId")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<PushNotificationChannel> CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer appServerKey, string channelId, string appId);
function createRawPushNotificationChannelWithAlternateKeyForApplicationAsync(appServerKey, channelId, appId)
Public Function CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync (appServerKey As IBuffer, channelId As String, appId As String) As IAsyncOperation(Of PushNotificationChannel)

Paramètres

appServerKey
IBuffer

Clé non compressée au format ANSI X9.62. Cette valeur provient de la courbe P-256 définie dans la spécification Secure Hash Standard.

channelId
String

Platform::String

winrt::hstring

ID du canal de notification Push.

appId
String

Platform::String

winrt::hstring

Identificateur d’application relatif au package (PRAID) de l’application à lier au canal de notification Push. L’application spécifiée doit se trouver dans le même package que l’application appelante. Pour plus d’informations sur le PRAID, consultez l’attribut ID de l’élément Application .

Si vous hébergez des tâches en arrière-plan sur un serveur COM hors processus, distinct de votre application main, passez comme argument du applicationId PRAID de l’application qui définit l’extension windows.backgroundTask dans son propre manifeste de package.

Retours

Objet lié au serveur d’applications spécifié dans appServerKey, utilisé pour demander un PushNotificationChannel à WNS.

Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10 Creators Update (introduit dans 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v4.0)

Remarques

Toutes les notifications brutes envoyées sur ce canal auront l’ID de canal attaché avant d’être remises à l’application. Cela permet aux applications de créer plusieurs canaux et de différencier l’endroit d’où proviennent les notifications.

Notes

La plupart des applications (y compris toutes les applications tierces) doivent utiliser createRawPushNotificationChannelWithAlternateKeyForApplicationAsync sans le paramètre appID.

S’applique à