NotificationHubClient.SendTemplateNotificationAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
SendTemplateNotificationAsync(IDictionary<String,String>) |
Envoie une notification de modèle. |
SendTemplateNotificationAsync(IDictionary<String,String>, IEnumerable<String>) |
Envoie une notification de modèle à un ensemble non vide de balises (20 maximum). Cela équivaut à une expression de balise avec des AUTHENTIFICATION booléennes (« || »). |
SendTemplateNotificationAsync(IDictionary<String,String>, String) |
Envoie une notification de modèle à une expression de balise (une seule balise « tag » est une expression de balise valide). |
SendTemplateNotificationAsync(IDictionary<String,String>, CancellationToken) |
Envoie une notification de modèle. |
SendTemplateNotificationAsync(IDictionary<String,String>, IEnumerable<String>, CancellationToken) |
Envoie une notification de modèle à un ensemble non vide de balises (20 maximum). Cela équivaut à une expression de balise avec des AUTHENTIFICATION booléennes (« || »). |
SendTemplateNotificationAsync(IDictionary<String,String>, String, CancellationToken) |
Envoie une notification de modèle à une expression de balise (une seule balise « tag » est une expression de balise valide). |
SendTemplateNotificationAsync(IDictionary<String,String>)
Envoie une notification de modèle.
public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendTemplateNotificationAsync (System.Collections.Generic.IDictionary<string,string> properties);
abstract member SendTemplateNotificationAsync : System.Collections.Generic.IDictionary<string, string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendTemplateNotificationAsync : System.Collections.Generic.IDictionary<string, string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendTemplateNotificationAsync (properties As IDictionary(Of String, String)) As Task(Of NotificationOutcome)
Paramètres
- properties
- IDictionary<String,String>
Propriétés à appliquer au modèle.
Retours
NotificationOutcome qui décrit le résultat de l’opération d’envoi.
Implémente
S’applique à
SendTemplateNotificationAsync(IDictionary<String,String>, IEnumerable<String>)
Envoie une notification de modèle à un ensemble non vide de balises (20 maximum). Cela équivaut à une expression de balise avec des AUTHENTIFICATION booléennes (« || »).
public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendTemplateNotificationAsync (System.Collections.Generic.IDictionary<string,string> properties, System.Collections.Generic.IEnumerable<string> tags);
abstract member SendTemplateNotificationAsync : System.Collections.Generic.IDictionary<string, string> * seq<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendTemplateNotificationAsync : System.Collections.Generic.IDictionary<string, string> * seq<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendTemplateNotificationAsync (properties As IDictionary(Of String, String), tags As IEnumerable(Of String)) As Task(Of NotificationOutcome)
Paramètres
- properties
- IDictionary<String,String>
Propriétés à appliquer au modèle.
- tags
- IEnumerable<String>
Ensemble non vide de balises (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 d’envoi.
Implémente
S’applique à
SendTemplateNotificationAsync(IDictionary<String,String>, String)
Envoie une notification de modèle à une expression de balise (une seule balise « tag » est une expression de balise valide).
public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendTemplateNotificationAsync (System.Collections.Generic.IDictionary<string,string> properties, string tagExpression);
abstract member SendTemplateNotificationAsync : System.Collections.Generic.IDictionary<string, string> * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendTemplateNotificationAsync : System.Collections.Generic.IDictionary<string, string> * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendTemplateNotificationAsync (properties As IDictionary(Of String, String), tagExpression As String) As Task(Of NotificationOutcome)
Paramètres
- properties
- IDictionary<String,String>
Propriétés à appliquer au modèle.
- tagExpression
- String
Une expression de balise est toute 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 20 balises, 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 d’envoi.
Implémente
S’applique à
SendTemplateNotificationAsync(IDictionary<String,String>, CancellationToken)
Envoie une notification de modèle.
public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendTemplateNotificationAsync (System.Collections.Generic.IDictionary<string,string> properties, System.Threading.CancellationToken cancellationToken);
abstract member SendTemplateNotificationAsync : System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendTemplateNotificationAsync : System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendTemplateNotificationAsync (properties As IDictionary(Of String, String), cancellationToken As CancellationToken) As Task(Of NotificationOutcome)
Paramètres
- properties
- IDictionary<String,String>
Propriétés à appliquer au modèle.
- cancellationToken
- CancellationToken
CancellationToken à observer en attendant qu'une tâche se termine.
Retours
NotificationOutcome qui décrit le résultat de l’opération d’envoi.
Implémente
S’applique à
SendTemplateNotificationAsync(IDictionary<String,String>, IEnumerable<String>, CancellationToken)
Envoie une notification de modèle à un ensemble non vide de balises (20 maximum). Cela équivaut à une expression de balise avec des AUTHENTIFICATION booléennes (« || »).
public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendTemplateNotificationAsync (System.Collections.Generic.IDictionary<string,string> properties, System.Collections.Generic.IEnumerable<string> tags, System.Threading.CancellationToken cancellationToken);
abstract member SendTemplateNotificationAsync : System.Collections.Generic.IDictionary<string, string> * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendTemplateNotificationAsync : System.Collections.Generic.IDictionary<string, string> * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendTemplateNotificationAsync (properties As IDictionary(Of String, String), tags As IEnumerable(Of String), cancellationToken As CancellationToken) As Task(Of NotificationOutcome)
Paramètres
- properties
- IDictionary<String,String>
Propriétés à appliquer au modèle.
- tags
- IEnumerable<String>
Ensemble non vide de balises (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 d’envoi.
Implémente
S’applique à
SendTemplateNotificationAsync(IDictionary<String,String>, String, CancellationToken)
Envoie une notification de modèle à une expression de balise (une seule balise « tag » est une expression de balise valide).
public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendTemplateNotificationAsync (System.Collections.Generic.IDictionary<string,string> properties, string tagExpression, System.Threading.CancellationToken cancellationToken);
abstract member SendTemplateNotificationAsync : System.Collections.Generic.IDictionary<string, string> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendTemplateNotificationAsync : System.Collections.Generic.IDictionary<string, string> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendTemplateNotificationAsync (properties As IDictionary(Of String, String), tagExpression As String, cancellationToken As CancellationToken) As Task(Of NotificationOutcome)
Paramètres
- properties
- IDictionary<String,String>
Propriétés à appliquer au modèle.
- tagExpression
- String
Une expression de balise est toute 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 20 balises, 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 d’envoi.
Implémente
S’applique à
Azure SDK for .NET
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour