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

NotificationHubClient.SendAdmNativeNotificationAsync 方法

定义

重载

SendAdmNativeNotificationAsync(String, CancellationToken)

将 Amazon Device Messaging (ADM) 本机通知发送。

SendAdmNativeNotificationAsync(String, String, CancellationToken)

将 Amazon Device Messaging (ADM) 本机通知发送。

SendAdmNativeNotificationAsync(String, IEnumerable<String>, CancellationToken)

将 Amazon Device Messaging (ADM) 本机通知发送。

SendAdmNativeNotificationAsync(String, String)

将 Amazon Device Messaging (ADM) 本机通知发送。

SendAdmNativeNotificationAsync(String, IEnumerable<String>)

将 Amazon Device Messaging (ADM) 本机通知发送。

SendAdmNativeNotificationAsync(String)

将 Amazon Device Messaging (ADM) 本机通知发送。

SendAdmNativeNotificationAsync(String, CancellationToken)

将 Amazon Device Messaging (ADM) 本机通知发送。

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>
override this.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)

参数

jsonPayload
String

一个有效的 ADM JSON 有效负载, 在此处详细介绍。

cancellationToken
CancellationToken

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

返回

NotificationOutcome 描述发送操作的结果。

实现

适用于

SendAdmNativeNotificationAsync(String, String, CancellationToken)

将 Amazon Device Messaging (ADM) 本机通知发送。

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>
override this.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)

参数

jsonPayload
String

一个有效的 ADM JSON 有效负载, 在此处详细介绍。

tagExpression
String

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

cancellationToken
CancellationToken

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

返回

NotificationOutcome 描述发送操作的结果。

实现

适用于

SendAdmNativeNotificationAsync(String, IEnumerable<String>, CancellationToken)

将 Amazon Device Messaging (ADM) 本机通知发送。

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>
override this.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)

参数

jsonPayload
String

一个有效的 ADM JSON 有效负载, 在此处详细介绍。

tags
IEnumerable<String>

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

cancellationToken
CancellationToken

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

返回

NotificationOutcome 描述发送操作的结果。

实现

适用于

SendAdmNativeNotificationAsync(String, String)

将 Amazon Device Messaging (ADM) 本机通知发送。

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>
override this.SendAdmNativeNotificationAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendAdmNativeNotificationAsync (jsonPayload As String, tagExpression As String) As Task(Of NotificationOutcome)

参数

jsonPayload
String

一个有效的 ADM JSON 有效负载, 在此处详细介绍。

tagExpression
String

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

返回

NotificationOutcome 描述发送操作的结果。

实现

适用于

SendAdmNativeNotificationAsync(String, IEnumerable<String>)

将 Amazon Device Messaging (ADM) 本机通知发送。

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>
override this.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)

参数

jsonPayload
String

一个有效的 ADM JSON 有效负载, 在此处详细介绍。

tags
IEnumerable<String>

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

返回

NotificationOutcome 描述发送操作的结果。

实现

适用于

SendAdmNativeNotificationAsync(String)

将 Amazon Device Messaging (ADM) 本机通知发送。

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

参数

jsonPayload
String

一个有效的 ADM JSON 有效负载, 在此处详细介绍。

返回

NotificationOutcome 描述发送操作的结果。

实现

适用于