Partager via


NotificationHubClient.SendFcmNativeNotificationAsync Méthode

Définition

Surcharges

SendFcmNativeNotificationAsync(String, IEnumerable<String>, CancellationToken)

Envoie une notification native FCM à un ensemble non vide de balises (max. 20). Cela équivaut à une expression de balise avec des OR booléens (« || »).

SendFcmNativeNotificationAsync(String)

Envoie une notification native Firebase Cloud Messaging (FCM).

SendFcmNativeNotificationAsync(String, IEnumerable<String>)

Envoie une notification native FCM à un ensemble non vide de balises (max. 20). Cela équivaut à une expression de balise avec des OR booléens (« || »).

SendFcmNativeNotificationAsync(String, String)

Envoie une notification native FCM à une expression de balise (une seule balise « tag » est une expression de balise valide).

SendFcmNativeNotificationAsync(String, CancellationToken)

Envoie une notification native Firebase Cloud Messaging (FCM).

SendFcmNativeNotificationAsync(String, String, CancellationToken)

Envoie une notification native FCM à une expression de balise (une seule balise « tag » est une expression de balise valide).

SendFcmNativeNotificationAsync(String, IEnumerable<String>, CancellationToken)

Envoie une notification native FCM à un ensemble non vide de balises (max. 20). Cela équivaut à une expression de balise avec des OR booléens (« || »).

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendFcmNativeNotificationAsync (string jsonPayload, System.Collections.Generic.IEnumerable<string> tags, System.Threading.CancellationToken cancellationToken);
abstract member SendFcmNativeNotificationAsync : string * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendFcmNativeNotificationAsync : string * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendFcmNativeNotificationAsync (jsonPayload As String, tags As IEnumerable(Of String), cancellationToken As CancellationToken) As Task(Of NotificationOutcome)

Paramètres

jsonPayload
String

Charge utile JSON. La documentation sur la mise en forme correcte d’un message FCM est disponible ici.

tags
IEnumerable<String>

Ensemble non vide d’étiquettes (maximum 20 balises). Chaque chaîne de l’ensemble peut contenir une seule balise.

cancellationToken
CancellationToken

CancellationToken à observer en attendant qu'une tâche se termine.

Retours

NotificationOutcome qui décrit le résultat de l’opération Send.

Implémente

S’applique à

SendFcmNativeNotificationAsync(String)

Envoie une notification native Firebase Cloud Messaging (FCM).

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendFcmNativeNotificationAsync (string jsonPayload);
abstract member SendFcmNativeNotificationAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendFcmNativeNotificationAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendFcmNativeNotificationAsync (jsonPayload As String) As Task(Of NotificationOutcome)

Paramètres

jsonPayload
String

Charge utile JSON. La documentation sur la mise en forme correcte d’un message FCM est disponible ici.

Retours

NotificationOutcome qui décrit le résultat de l’opération Send.

Implémente

S’applique à

SendFcmNativeNotificationAsync(String, IEnumerable<String>)

Envoie une notification native FCM à un ensemble non vide de balises (max. 20). Cela équivaut à une expression de balise avec des OR booléens (« || »).

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendFcmNativeNotificationAsync (string jsonPayload, System.Collections.Generic.IEnumerable<string> tags);
abstract member SendFcmNativeNotificationAsync : string * seq<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendFcmNativeNotificationAsync : string * seq<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendFcmNativeNotificationAsync (jsonPayload As String, tags As IEnumerable(Of String)) As Task(Of NotificationOutcome)

Paramètres

jsonPayload
String

Charge utile JSON. La documentation sur la mise en forme correcte d’un message FCM est disponible ici.

tags
IEnumerable<String>

Ensemble non vide d’étiquettes (maximum 20 balises). Chaque chaîne de l’ensemble peut contenir une seule balise.

Retours

NotificationOutcome qui décrit le résultat de l’opération Send.

Implémente

S’applique à

SendFcmNativeNotificationAsync(String, String)

Envoie une notification native FCM à une expression de balise (une seule balise « tag » est une expression de balise valide).

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendFcmNativeNotificationAsync (string jsonPayload, string tagExpression);
abstract member SendFcmNativeNotificationAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendFcmNativeNotificationAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendFcmNativeNotificationAsync (jsonPayload As String, tagExpression As String) As Task(Of NotificationOutcome)

Paramètres

jsonPayload
String

Charge utile JSON. La documentation sur la mise en forme correcte d’un message FCM est disponible ici.

tagExpression
String

Une expression de balise est une expression booléenne construite à l’aide des opérateurs logiques AND (&&), OR (||), NOT (!) et des parenthèses rondes. Par exemple : (A || B) && !C. Si une expression utilise uniquement des OR, elle peut contenir au maximum 20 balises. Les autres expressions sont limitées à 6 balises. Notez qu’une seule balise « A » est une expression valide.

Retours

NotificationOutcome qui décrit le résultat de l’opération Send.

Implémente

S’applique à

SendFcmNativeNotificationAsync(String, CancellationToken)

Envoie une notification native Firebase Cloud Messaging (FCM).

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendFcmNativeNotificationAsync (string jsonPayload, System.Threading.CancellationToken cancellationToken);
abstract member SendFcmNativeNotificationAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendFcmNativeNotificationAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendFcmNativeNotificationAsync (jsonPayload As String, cancellationToken As CancellationToken) As Task(Of NotificationOutcome)

Paramètres

jsonPayload
String

Charge utile JSON. La documentation sur la mise en forme correcte d’un message FCM est disponible ici.

cancellationToken
CancellationToken

CancellationToken à observer en attendant qu'une tâche se termine.

Retours

NotificationOutcome qui décrit le résultat de l’opération Send.

Implémente

S’applique à

SendFcmNativeNotificationAsync(String, String, CancellationToken)

Envoie une notification native FCM à une expression de balise (une seule balise « tag » est une expression de balise valide).

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendFcmNativeNotificationAsync (string jsonPayload, string tagExpression, System.Threading.CancellationToken cancellationToken);
abstract member SendFcmNativeNotificationAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendFcmNativeNotificationAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendFcmNativeNotificationAsync (jsonPayload As String, tagExpression As String, cancellationToken As CancellationToken) As Task(Of NotificationOutcome)

Paramètres

jsonPayload
String

Charge utile JSON. La documentation sur la mise en forme correcte d’un message FCM est disponible ici.

tagExpression
String

Une expression de balise est une expression booléenne construite à l’aide des opérateurs logiques AND (&&), OR (||), NOT (!) et des parenthèses rondes. Par exemple : (A || B) && !C. Si une expression utilise uniquement des OR, elle peut contenir au maximum 20 balises. Les autres expressions sont limitées à 6 balises. Notez qu’une seule balise « A » est une expression valide.

cancellationToken
CancellationToken

CancellationToken à observer en attendant qu'une tâche se termine.

Retours

NotificationOutcome qui décrit le résultat de l’opération Send.

Implémente

S’applique à