Share via


NotificationHubClient.SendAdmNativeNotificationAsync Método

Definição

Sobrecargas

SendAdmNativeNotificationAsync(String, CancellationToken)

Envia a notificação nativa do ADM (Amazon Device Messaging).

SendAdmNativeNotificationAsync(String, String, CancellationToken)

Envia a notificação nativa do ADM (Amazon Device Messaging).

SendAdmNativeNotificationAsync(String, IEnumerable<String>, CancellationToken)

Envia a notificação nativa do ADM (Amazon Device Messaging).

SendAdmNativeNotificationAsync(String, String)

Envia a notificação nativa do ADM (Amazon Device Messaging).

SendAdmNativeNotificationAsync(String, IEnumerable<String>)

Envia a notificação nativa do ADM (Amazon Device Messaging).

SendAdmNativeNotificationAsync(String)

Envia a notificação nativa do ADM (Amazon Device Messaging).

SendAdmNativeNotificationAsync(String, CancellationToken)

Envia a notificação nativa do ADM (Amazon Device Messaging).

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

Parâmetros

jsonPayload
String

Uma carga JSON válida do ADM, descrita em detalhes aqui.

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

SendAdmNativeNotificationAsync(String, String, CancellationToken)

Envia a notificação nativa do ADM (Amazon Device Messaging).

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

Parâmetros

jsonPayload
String

Uma carga JSON válida do ADM, descrita em detalhes aqui.

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

SendAdmNativeNotificationAsync(String, IEnumerable<String>, CancellationToken)

Envia a notificação nativa do ADM (Amazon Device Messaging).

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

Parâmetros

jsonPayload
String

Uma carga JSON válida do ADM, descrita em detalhes aqui.

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

SendAdmNativeNotificationAsync(String, String)

Envia a notificação nativa do ADM (Amazon Device Messaging).

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

Parâmetros

jsonPayload
String

Uma carga JSON válida do ADM, descrita em detalhes aqui.

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

SendAdmNativeNotificationAsync(String, IEnumerable<String>)

Envia a notificação nativa do ADM (Amazon Device Messaging).

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

Parâmetros

jsonPayload
String

Uma carga JSON válida do ADM, descrita em detalhes aqui.

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

SendAdmNativeNotificationAsync(String)

Envia a notificação nativa do ADM (Amazon Device Messaging).

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

Parâmetros

jsonPayload
String

Uma carga JSON válida do ADM, descrita em detalhes aqui.

Retornos

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

Implementações

Aplica-se a