Compartilhar via


NotificationHubClient.SendTemplateNotificationAsync Método

Definição

Sobrecargas

SendTemplateNotificationAsync(IDictionary<String,String>)

Envia uma notificação de modelo.

SendTemplateNotificationAsync(IDictionary<String,String>, IEnumerable<String>)

Envia uma notificação de modelo para um conjunto não vazio de marcas (máximo de 20). Isso é equivalente a uma expressão de marca com ORs boolianos ("||").

SendTemplateNotificationAsync(IDictionary<String,String>, String)

Envia uma notificação de modelo para uma expressão de marca (uma única marca "tag" é uma expressão de marca válida).

SendTemplateNotificationAsync(IDictionary<String,String>, CancellationToken)

Envia uma notificação de modelo.

SendTemplateNotificationAsync(IDictionary<String,String>, IEnumerable<String>, CancellationToken)

Envia uma notificação de modelo para um conjunto não vazio de marcas (máximo de 20). Isso é equivalente a uma expressão de marca com ORs boolianos ("||").

SendTemplateNotificationAsync(IDictionary<String,String>, String, CancellationToken)

Envia uma notificação de modelo para uma expressão de marca (uma única marca "tag" é uma expressão de marca válida).

SendTemplateNotificationAsync(IDictionary<String,String>)

Envia uma notificação de modelo.

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)

Parâmetros

properties
IDictionary<String,String>

As propriedades a serem aplicadas ao modelo.

Retornos

NotificationOutcome que descreve o resultado da operação Enviar.

Implementações

Aplica-se a

SendTemplateNotificationAsync(IDictionary<String,String>, IEnumerable<String>)

Envia uma notificação de modelo para um conjunto não vazio de marcas (máximo de 20). Isso é equivalente a uma expressão de marca com ORs boolianos ("||").

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)

Parâmetros

properties
IDictionary<String,String>

As propriedades a serem aplicadas ao modelo.

tags
IEnumerable<String>

Um conjunto não vazio de marcas (máximo de 20 marcas). Cada cadeia de caracteres no conjunto pode conter uma única marca.

Retornos

NotificationOutcome que descreve o resultado da operação Enviar.

Implementações

Aplica-se a

SendTemplateNotificationAsync(IDictionary<String,String>, String)

Envia uma notificação de modelo para uma expressão de marca (uma única marca "tag" é uma expressão de marca válida).

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)

Parâmetros

properties
IDictionary<String,String>

As propriedades a serem aplicadas ao modelo.

tagExpression
String

Uma expressão de marca é qualquer expressão booliana construída usando os operadores lógicos AND (&&), OR (||), NOT (!), e parênteses redondos. Por exemplo: (A || B) && !C. Se uma expressão usar apenas ORs, ela poderá conter no máximo 20 marcas. Outras expressões são limitadas a 6 marcas. Observe que uma única marca "A" é uma expressão válida.

Retornos

NotificationOutcome que descreve o resultado da operação Enviar.

Implementações

Aplica-se a

SendTemplateNotificationAsync(IDictionary<String,String>, CancellationToken)

Envia uma notificação de modelo.

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)

Parâmetros

properties
IDictionary<String,String>

As propriedades a serem aplicadas ao modelo.

cancellationToken
CancellationToken

Um CancellationToken a ser observado ao aguardar a conclusão da tarefa.

Retornos

NotificationOutcome que descreve o resultado da operação Enviar.

Implementações

Aplica-se a

SendTemplateNotificationAsync(IDictionary<String,String>, IEnumerable<String>, CancellationToken)

Envia uma notificação de modelo para um conjunto não vazio de marcas (máximo de 20). Isso é equivalente a uma expressão de marca com ORs boolianos ("||").

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)

Parâmetros

properties
IDictionary<String,String>

As propriedades a serem aplicadas ao modelo.

tags
IEnumerable<String>

Um conjunto não vazio de marcas (máximo de 20 marcas). Cada cadeia de caracteres no conjunto pode conter uma única marca.

cancellationToken
CancellationToken

Um CancellationToken a ser observado ao aguardar a conclusão da tarefa.

Retornos

NotificationOutcome que descreve o resultado da operação Enviar.

Implementações

Aplica-se a

SendTemplateNotificationAsync(IDictionary<String,String>, String, CancellationToken)

Envia uma notificação de modelo para uma expressão de marca (uma única marca "tag" é uma expressão de marca válida).

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)

Parâmetros

properties
IDictionary<String,String>

As propriedades a serem aplicadas ao modelo.

tagExpression
String

Uma expressão de marca é qualquer expressão booliana construída usando os operadores lógicos AND (&&), OR (||), NOT (!), e parênteses redondos. Por exemplo: (A || B) && !C. Se uma expressão usar apenas ORs, ela poderá conter no máximo 20 marcas. Outras expressões são limitadas a 6 marcas. Observe que uma única marca "A" é uma expressão válida.

cancellationToken
CancellationToken

Um CancellationToken a ser observado ao aguardar a conclusão da tarefa.

Retornos

NotificationOutcome que descreve o resultado da operação Enviar.

Implementações

Aplica-se a