共用方式為


NotificationHubClient.SendTemplateNotificationAsync Method

Definition

Overloads

SendTemplateNotificationAsync(IDictionary<String,String>)

Sends a template notification.

SendTemplateNotificationAsync(IDictionary<String,String>, IEnumerable<String>)

Sends a template notification to a non-empty set of tags (maximum 20). This is equivalent to a tag expression with boolean ORs ("||").

SendTemplateNotificationAsync(IDictionary<String,String>, String)

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

SendTemplateNotificationAsync(IDictionary<String,String>, CancellationToken)

Sends a template notification.

SendTemplateNotificationAsync(IDictionary<String,String>, IEnumerable<String>, CancellationToken)

Sends a template notification to a non-empty set of tags (maximum 20). This is equivalent to a tag expression with boolean ORs ("||").

SendTemplateNotificationAsync(IDictionary<String,String>, String, CancellationToken)

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

SendTemplateNotificationAsync(IDictionary<String,String>)

Sends a template notification.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendTemplateNotificationAsync (System.Collections.Generic.IDictionary<string,string> properties);
abstract member SendTemplateNotificationAsync : System.Collections.Generic.IDictionary<string, string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendTemplateNotificationAsync : System.Collections.Generic.IDictionary<string, string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendTemplateNotificationAsync (properties As IDictionary(Of String, String)) As Task(Of NotificationOutcome)

Parameters

properties
IDictionary<String,String>

The properties to apply to the template.

Returns

NotificationOutcome which describes the result of the Send operation.

Implements

Applies to

SendTemplateNotificationAsync(IDictionary<String,String>, IEnumerable<String>)

Sends a template notification to a non-empty set of tags (maximum 20). This is equivalent to a tag expression with boolean ORs ("||").

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

Parameters

properties
IDictionary<String,String>

The properties to apply to the template.

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.

Implements

Applies to

SendTemplateNotificationAsync(IDictionary<String,String>, String)

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

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

Parameters

properties
IDictionary<String,String>

The properties to apply to the template.

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.

Implements

Applies to

SendTemplateNotificationAsync(IDictionary<String,String>, CancellationToken)

Sends a template notification.

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

Parameters

properties
IDictionary<String,String>

The properties to apply to the template.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

NotificationOutcome which describes the result of the Send operation.

Implements

Applies to

SendTemplateNotificationAsync(IDictionary<String,String>, IEnumerable<String>, CancellationToken)

Sends a template notification to a non-empty set of tags (maximum 20). This is equivalent to a tag expression with boolean ORs ("||").

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

Parameters

properties
IDictionary<String,String>

The properties to apply to the template.

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.

Implements

Applies to

SendTemplateNotificationAsync(IDictionary<String,String>, String, CancellationToken)

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

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

Parameters

properties
IDictionary<String,String>

The properties to apply to the template.

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.

Implements

Applies to