INotificationHubClient.SendAdmNativeNotificationAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SendAdmNativeNotificationAsync(String) |
Sends the Amazon Device Messaging (ADM) native notification. |
SendAdmNativeNotificationAsync(String, IEnumerable<String>) |
Sends the Amazon Device Messaging (ADM) native notification. |
SendAdmNativeNotificationAsync(String, String) |
Sends the Amazon Device Messaging (ADM) native notification. |
SendAdmNativeNotificationAsync(String, CancellationToken) |
Sends the Amazon Device Messaging (ADM) native notification. |
SendAdmNativeNotificationAsync(String, IEnumerable<String>, CancellationToken) |
Sends the Amazon Device Messaging (ADM) native notification. |
SendAdmNativeNotificationAsync(String, String, CancellationToken) |
Sends the Amazon Device Messaging (ADM) native notification. |
SendAdmNativeNotificationAsync(String)
Sends the Amazon Device Messaging (ADM) native notification.
public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendAdmNativeNotificationAsync (string jsonPayload);
abstract member SendAdmNativeNotificationAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendAdmNativeNotificationAsync (jsonPayload As String) As Task(Of NotificationOutcome)
Parameters
Returns
NotificationOutcome which describes the result of the Send operation.
Applies to
SendAdmNativeNotificationAsync(String, IEnumerable<String>)
Sends the Amazon Device Messaging (ADM) native notification.
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>
Public Function SendAdmNativeNotificationAsync (jsonPayload As String, tags As IEnumerable(Of String)) As Task(Of NotificationOutcome)
Parameters
- tags
- IEnumerable<String>
A non-empty set of tags (maximum 20 tags). Each string in the set can contain a single tag.
Returns
NotificationOutcome which describes the result of the Send operation.
Applies to
SendAdmNativeNotificationAsync(String, String)
Sends the Amazon Device Messaging (ADM) native notification.
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>
Public Function SendAdmNativeNotificationAsync (jsonPayload As String, tagExpression As String) As Task(Of NotificationOutcome)
Parameters
- tagExpression
- String
A tag expression is any boolean expression constructed using the logical operators AND (&&), OR (||), NOT (!), and round parentheses. For example: (A || B) && !C. If an expression uses only ORs, it can contain at most 20 tags. Other expressions are limited to 6 tags. Note that a single tag "A" is a valid expression.
Returns
NotificationOutcome which describes the result of the Send operation.
Applies to
SendAdmNativeNotificationAsync(String, CancellationToken)
Sends the Amazon Device Messaging (ADM) native notification.
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>
Public Function SendAdmNativeNotificationAsync (jsonPayload As String, cancellationToken As CancellationToken) As Task(Of NotificationOutcome)
Parameters
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Returns
NotificationOutcome which describes the result of the Send operation.
Applies to
SendAdmNativeNotificationAsync(String, IEnumerable<String>, CancellationToken)
Sends the Amazon Device Messaging (ADM) native notification.
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>
Public Function SendAdmNativeNotificationAsync (jsonPayload As String, tags As IEnumerable(Of String), cancellationToken As CancellationToken) As Task(Of NotificationOutcome)
Parameters
- tags
- IEnumerable<String>
A non-empty set of tags (maximum 20 tags). Each string in the set can contain a single tag.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Returns
NotificationOutcome which describes the result of the Send operation.
Applies to
SendAdmNativeNotificationAsync(String, String, CancellationToken)
Sends the Amazon Device Messaging (ADM) native notification.
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>
Public Function SendAdmNativeNotificationAsync (jsonPayload As String, tagExpression As String, cancellationToken As CancellationToken) As Task(Of NotificationOutcome)
Parameters
- tagExpression
- String
A tag expression is any boolean expression constructed using the logical operators AND (&&), OR (||), NOT (!), and round parentheses. For example: (A || B) && !C. If an expression uses only ORs, it can contain at most 20 tags. Other expressions are limited to 6 tags. Note that a single tag "A" is a valid expression.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Returns
NotificationOutcome which describes the result of the Send operation.