Share via


NotificationHubClient.SendMpnsNativeNotificationAsync Método

Definição

Sobrecargas

SendMpnsNativeNotificationAsync(String, IEnumerable<String>, CancellationToken)

Envia uma notificação nativa do MPNS (Microsoft Push Notification Service) para um conjunto não vazio de marcas (máximo de 20). Isso é equivalente a uma expressão de marca com ORs boolianos ("||"). Para especificar cabeçalhos para MPNS, use o SendNotificationAsync(Notification) método .

SendMpnsNativeNotificationAsync(String, CancellationToken)

Envia uma notificação nativa do MPNS (Microsoft Push Notification Service). Para especificar cabeçalhos para MPNS, use o SendNotificationAsync(Notification) método .

SendMpnsNativeNotificationAsync(String, String, CancellationToken)

Envia uma notificação nativa do MPNS (Microsoft Push Notification Service) para uma expressão de marca (uma única marca "tag" é uma expressão de marca válida). Para especificar cabeçalhos para MPNS, use o SendNotificationAsync(Notification) método .

SendMpnsNativeNotificationAsync(String, IEnumerable<String>)

Envia uma notificação nativa do MPNS (Microsoft Push Notification Service) para um conjunto não vazio de marcas (máximo de 20). Isso é equivalente a uma expressão de marca com ORs boolianos ("||"). Para especificar cabeçalhos para MPNS, use o SendNotificationAsync(Notification) método .

SendMpnsNativeNotificationAsync(String)

Envia uma notificação nativa do MPNS (Microsoft Push Notification Service). Para especificar cabeçalhos para MPNS, use o SendNotificationAsync(Notification) método .

SendMpnsNativeNotificationAsync(String, String)

Envia uma notificação nativa do MPNS (Microsoft Push Notification Service) para uma expressão de marca (uma única marca "tag" é uma expressão de marca válida). Para especificar cabeçalhos para MPNS, use o SendNotificationAsync(Notification) método .

SendMpnsNativeNotificationAsync(String, IEnumerable<String>, CancellationToken)

Envia uma notificação nativa do MPNS (Microsoft Push Notification Service) para um conjunto não vazio de marcas (máximo de 20). Isso é equivalente a uma expressão de marca com ORs boolianos ("||"). Para especificar cabeçalhos para MPNS, use o SendNotificationAsync(Notification) método .

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

Parâmetros

nativePayload
String

O conteúdo da notificação.

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

SendMpnsNativeNotificationAsync(String, CancellationToken)

Envia uma notificação nativa do MPNS (Microsoft Push Notification Service). Para especificar cabeçalhos para MPNS, use o SendNotificationAsync(Notification) método .

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

Parâmetros

nativePayload
String

O conteúdo nativo.

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

SendMpnsNativeNotificationAsync(String, String, CancellationToken)

Envia uma notificação nativa do MPNS (Microsoft Push Notification Service) para uma expressão de marca (uma única marca "tag" é uma expressão de marca válida). Para especificar cabeçalhos para MPNS, use o SendNotificationAsync(Notification) método .

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

Parâmetros

nativePayload
String

O conteúdo nativo.

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

SendMpnsNativeNotificationAsync(String, IEnumerable<String>)

Envia uma notificação nativa do MPNS (Microsoft Push Notification Service) para um conjunto não vazio de marcas (máximo de 20). Isso é equivalente a uma expressão de marca com ORs boolianos ("||"). Para especificar cabeçalhos para MPNS, use o SendNotificationAsync(Notification) método .

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

Parâmetros

nativePayload
String

O conteúdo da notificação.

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

SendMpnsNativeNotificationAsync(String)

Envia uma notificação nativa do MPNS (Microsoft Push Notification Service). Para especificar cabeçalhos para MPNS, use o SendNotificationAsync(Notification) método .

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

Parâmetros

nativePayload
String

O conteúdo nativo.

Retornos

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

Implementações

Aplica-se a

SendMpnsNativeNotificationAsync(String, String)

Envia uma notificação nativa do MPNS (Microsoft Push Notification Service) para uma expressão de marca (uma única marca "tag" é uma expressão de marca válida). Para especificar cabeçalhos para MPNS, use o SendNotificationAsync(Notification) método .

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

Parâmetros

nativePayload
String

O conteúdo nativo.

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