Dela via


INotificationHubClient.SendMpnsNativeNotificationAsync Method

Definition

Overloads

SendMpnsNativeNotificationAsync(String)

Sends a Microsoft Push Notification Service (MPNS) native notification. To specify headers for MPNS, use the SendNotificationAsync(Notification) method.

SendMpnsNativeNotificationAsync(String, IEnumerable<String>)

Sends a Microsoft Push Notification Service (MPNS) native notification to a non-empty set of tags (maximum 20). This is equivalent to a tag expression with boolean ORs ("||"). To specify headers for MPNS, use the SendNotificationAsync(Notification) method.

SendMpnsNativeNotificationAsync(String, String)

Sends a Microsoft Push Notification Service (MPNS) native notification to a tag expression (a single tag "tag" is a valid tag expression). To specify headers for MPNS, use the SendNotificationAsync(Notification) method.

SendMpnsNativeNotificationAsync(String, CancellationToken)

Sends a Microsoft Push Notification Service (MPNS) native notification. To specify headers for MPNS, use the SendNotificationAsync(Notification) method.

SendMpnsNativeNotificationAsync(String, IEnumerable<String>, CancellationToken)

Sends a Microsoft Push Notification Service (MPNS) native notification to a non-empty set of tags (maximum 20). This is equivalent to a tag expression with boolean ORs ("||"). To specify headers for MPNS, use the SendNotificationAsync(Notification) method.

SendMpnsNativeNotificationAsync(String, String, CancellationToken)

Sends a Microsoft Push Notification Service (MPNS) native notification to a tag expression (a single tag "tag" is a valid tag expression). To specify headers for MPNS, use the SendNotificationAsync(Notification) method.

SendMpnsNativeNotificationAsync(String)

Sends a Microsoft Push Notification Service (MPNS) native notification. To specify headers for MPNS, use the SendNotificationAsync(Notification) method.

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

Parameters

nativePayload
String

The native payload.

Returns

NotificationOutcome which describes the result of the Send operation.

Applies to

SendMpnsNativeNotificationAsync(String, IEnumerable<String>)

Sends a Microsoft Push Notification Service (MPNS) native notification to a non-empty set of tags (maximum 20). This is equivalent to a tag expression with boolean ORs ("||"). To specify headers for MPNS, use the SendNotificationAsync(Notification) method.

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>
Public Function SendMpnsNativeNotificationAsync (nativePayload As String, tags As IEnumerable(Of String)) As Task(Of NotificationOutcome)

Parameters

nativePayload
String

The notification payload.

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

SendMpnsNativeNotificationAsync(String, String)

Sends a Microsoft Push Notification Service (MPNS) native notification to a tag expression (a single tag "tag" is a valid tag expression). To specify headers for MPNS, use the SendNotificationAsync(Notification) method.

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>
Public Function SendMpnsNativeNotificationAsync (nativePayload As String, tagExpression As String) As Task(Of NotificationOutcome)

Parameters

nativePayload
String

The native payload.

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

SendMpnsNativeNotificationAsync(String, CancellationToken)

Sends a Microsoft Push Notification Service (MPNS) native notification. To specify headers for MPNS, use the SendNotificationAsync(Notification) method.

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>
Public Function SendMpnsNativeNotificationAsync (nativePayload As String, cancellationToken As CancellationToken) As Task(Of NotificationOutcome)

Parameters

nativePayload
String

The native payload.

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

SendMpnsNativeNotificationAsync(String, IEnumerable<String>, CancellationToken)

Sends a Microsoft Push Notification Service (MPNS) native notification to a non-empty set of tags (maximum 20). This is equivalent to a tag expression with boolean ORs ("||"). To specify headers for MPNS, use the SendNotificationAsync(Notification) method.

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>
Public Function SendMpnsNativeNotificationAsync (nativePayload As String, tags As IEnumerable(Of String), cancellationToken As CancellationToken) As Task(Of NotificationOutcome)

Parameters

nativePayload
String

The notification payload.

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

SendMpnsNativeNotificationAsync(String, String, CancellationToken)

Sends a Microsoft Push Notification Service (MPNS) native notification to a tag expression (a single tag "tag" is a valid tag expression). To specify headers for MPNS, use the SendNotificationAsync(Notification) method.

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>
Public Function SendMpnsNativeNotificationAsync (nativePayload As String, tagExpression As String, cancellationToken As CancellationToken) As Task(Of NotificationOutcome)

Parameters

nativePayload
String

The native payload.

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.

Applies to