你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

NotificationHubClient.SendTemplateNotificationAsync 方法

定义

重载

SendTemplateNotificationAsync(IDictionary<String,String>)

发送模板通知。

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

将模板通知发送到一组非空标记, (最多 20) 。 这等效于具有布尔 OR (“||”的标记表达式) 。

SendTemplateNotificationAsync(IDictionary<String,String>, String)

将模板通知发送到标记表达式, (单个标记“tag”是有效的标记表达式) 。

SendTemplateNotificationAsync(IDictionary<String,String>, CancellationToken)

发送模板通知。

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

将模板通知发送到一组非空标记, (最多 20) 。 这等效于具有布尔 OR (“||”的标记表达式) 。

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

将模板通知发送到标记表达式, (单个标记“tag”是有效的标记表达式) 。

SendTemplateNotificationAsync(IDictionary<String,String>)

发送模板通知。

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)

参数

properties
IDictionary<String,String>

要应用于模板的属性。

返回

NotificationOutcome 它描述发送操作的结果。

实现

适用于

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

将模板通知发送到一组非空标记, (最多 20) 。 这等效于具有布尔 OR (“||”的标记表达式) 。

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)

参数

properties
IDictionary<String,String>

要应用于模板的属性。

tags
IEnumerable<String>

一组非空的标记 (最多 20 个标记) 。 集中的每个字符串可以包含单个标记。

返回

NotificationOutcome 它描述发送操作的结果。

实现

适用于

SendTemplateNotificationAsync(IDictionary<String,String>, String)

将模板通知发送到标记表达式, (单个标记“tag”是有效的标记表达式) 。

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)

参数

properties
IDictionary<String,String>

要应用于模板的属性。

tagExpression
String

标记表达式是使用逻辑运算符 AND () 、OR (&& ||) 、NOT (!) 和圆括号构造的任何布尔表达式。 例如: (A ||B) && !C. 如果表达式仅使用 OR,则最多可以包含 20 个标记。 其他表达式限制为 6 个标记。 请注意,单个标记“A”是有效的表达式。

返回

NotificationOutcome 它描述发送操作的结果。

实现

适用于

SendTemplateNotificationAsync(IDictionary<String,String>, CancellationToken)

发送模板通知。

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)

参数

properties
IDictionary<String,String>

要应用于模板的属性。

cancellationToken
CancellationToken

等待任务完成期间要观察的 CancellationToken

返回

NotificationOutcome 它描述发送操作的结果。

实现

适用于

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

将模板通知发送到一组非空标记, (最多 20) 。 这等效于具有布尔 OR (“||”的标记表达式) 。

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)

参数

properties
IDictionary<String,String>

要应用于模板的属性。

tags
IEnumerable<String>

一组非空的标记 (最多 20 个标记) 。 集中的每个字符串可以包含单个标记。

cancellationToken
CancellationToken

等待任务完成期间要观察的 CancellationToken

返回

NotificationOutcome 它描述发送操作的结果。

实现

适用于

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

将模板通知发送到标记表达式, (单个标记“tag”是有效的标记表达式) 。

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)

参数

properties
IDictionary<String,String>

要应用于模板的属性。

tagExpression
String

标记表达式是使用逻辑运算符 AND () 、OR (&& ||) 、NOT (!) 和圆括号构造的任何布尔表达式。 例如: (A ||B) && !C. 如果表达式仅使用 OR,则最多可以包含 20 个标记。 其他表达式限制为 6 个标记。 请注意,单个标记“A”是有效的表达式。

cancellationToken
CancellationToken

等待任务完成期间要观察的 CancellationToken

返回

NotificationOutcome 它描述发送操作的结果。

实现

适用于