Dela via


INotificationHubClient.SendBaiduNativeNotificationAsync Method

Definition

Overloads

SendBaiduNativeNotificationAsync(String, String, CancellationToken)

Sends Baidu native notification to a tag expression (a single tag "tag" is a valid tag expression).

SendBaiduNativeNotificationAsync(String, CancellationToken)

Sends a Baidu native notification.

SendBaiduNativeNotificationAsync(String, IEnumerable<String>, CancellationToken)

Sends Baidu native notification to a tag expression (a single tag "tag" is a valid tag expression).

SendBaiduNativeNotificationAsync(String, IEnumerable<String>)

Sends Baidu native notification to a tag expression (a single tag "tag" is a valid tag expression).

SendBaiduNativeNotificationAsync(String)

Sends a Baidu native notification.

SendBaiduNativeNotificationAsync(String, String)

Sends Baidu native notification to a tag expression (a single tag "tag" is a valid tag expression).

SendBaiduNativeNotificationAsync(String, String, CancellationToken)

Sends Baidu native notification to a tag expression (a single tag "tag" is a valid tag expression).

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

Parameters

message
String

This is a json request. Baidu documents the format for the json here.

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

SendBaiduNativeNotificationAsync(String, CancellationToken)

Sends a Baidu native notification.

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

Parameters

message
String

This is a json request. Baidu documents the format for the json here.

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

SendBaiduNativeNotificationAsync(String, IEnumerable<String>, CancellationToken)

Sends Baidu native notification to a tag expression (a single tag "tag" is a valid tag expression).

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

Parameters

message
String

This is a json request. Baidu documents the format for the json here.

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

SendBaiduNativeNotificationAsync(String, IEnumerable<String>)

Sends Baidu native notification to a tag expression (a single tag "tag" is a valid tag expression).

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

Parameters

message
String

This is a json request. Baidu documents the format for the json here.

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

SendBaiduNativeNotificationAsync(String)

Sends a Baidu native notification.

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

Parameters

message
String

This is a json request. Baidu documents the format for the json here.

Returns

NotificationOutcome which describes the result of the Send operation.

Applies to

SendBaiduNativeNotificationAsync(String, String)

Sends Baidu native notification to a tag expression (a single tag "tag" is a valid tag expression).

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

Parameters

message
String

This is a json request. Baidu documents the format for the json here.

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