PushNotificationChannelManagerForUser.CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer, String) |
Crea un oggetto associato a un'app specificata tramite cui si recupera un canale di notifica push da Windows Push Notification Services (WNS). L'app specificata deve trovarsi nello stesso pacchetto dell'app chiamante. |
CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer, String, String) |
Crea un oggetto associato a un'app specificata tramite cui si recupera un canale di notifica push da Windows Push Notification Services (WNS). L'app specificata deve trovarsi nello stesso pacchetto dell'app chiamante. |
CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer, String)
Crea un oggetto associato a un'app specificata tramite cui si recupera un canale di notifica push da Windows Push Notification Services (WNS). L'app specificata deve trovarsi nello stesso pacchetto dell'app chiamante.
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)
Parametri
- appServerKey
- IBuffer
Chiave non compressa in formato ANSI X9.62. Questo valore deriva dalla curva P-256 definita nella specifica Secure Hash Standard.
- channelId
-
String
Platform::String
winrt::hstring
ID del canale di notifica push.
Restituisce
Oggetto, associato al server app specificato in appServerKey, usato per richiedere pushNotificationChannel da WNS.
- Attributi
Requisiti Windows
Famiglia di dispositivi |
Windows 10 Creators Update (è stato introdotto in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (è stato introdotto in v4.0)
|
Commenti
Si noti che tutte le notifiche non elaborate inviate su questo canale avranno il channelID collegato prima di essere recapitato all'app. In questo modo le app possono creare più canali e distinguere la provenienza delle notifiche.
Si applica a
CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(IBuffer, String, String)
Crea un oggetto associato a un'app specificata tramite cui si recupera un canale di notifica push da Windows Push Notification Services (WNS). L'app specificata deve trovarsi nello stesso pacchetto dell'app chiamante.
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)
Parametri
- appServerKey
- IBuffer
Chiave non compressa in formato ANSI X9.62. Questo valore deriva dalla curva P-256 definita nella specifica Secure Hash Standard.
- channelId
-
String
Platform::String
winrt::hstring
ID del canale di notifica push.
- appId
-
String
Platform::String
winrt::hstring
Identificatore dell'applicazione relativo al pacchetto (PRAID) dell'app da associare al canale di notifica push. L'app specificata deve trovarsi nello stesso pacchetto dell'app chiamante. Per altre info sul PRAID, vedi l'attributo Id dell'elemento Application .
Se si ospitano attività in background in un server COM out-of-process, separate dall'applicazione principale, passare come argomento per applicationId
il PRAID dell'applicazione che definisce l'estensione windows.backgroundTask
nel manifesto del pacchetto.
Restituisce
Oggetto, associato al server app specificato in appServerKey, usato per richiedere pushNotificationChannel da WNS.
- Attributi
Requisiti Windows
Famiglia di dispositivi |
Windows 10 Creators Update (è stato introdotto in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (è stato introdotto in v4.0)
|
Commenti
Tutte le notifiche non elaborate inviate su questo canale avranno il channelID collegato prima di essere recapitato all'app. In questo modo le app possono creare più canali e distinguere la provenienza delle notifiche.
Nota
La maggior parte delle applicazioni (incluse tutte le app di terze parti) deve usare createRawPushNotificationChannelWithAlternateKeyForApplicationAsync senza il parametro appID.