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

PushClient 类

定义

PushClient提供一种机制,用于通过通知中心将通知发送到移动应用程序。

public class PushClient
type PushClient = class
Public Class PushClient
继承
PushClient

构造函数

PushClient(ApiServices)

使用给定ApiServices实例初始化 的新PushClient实例。

属性

EnableTestSend

启用测试发送后,每个发送调用的所有通知最多只能到达 10 个设备,SendNotificationAsync 方法将返回所有这些通知传递的结果的详细列表, (例如身份验证错误、限制错误等) 。

HubClient

获取或设置 Microsoft.ServiceBus.Notifications.NotificationHubClient 用于发送通知的 。

方法

CreateNotification(IPushMessage)

Microsoft.ServiceBus.Notifications.Notification 创建一个 IPushMessage

CreateNotificationHubClient(String, String, Boolean)

Microsoft.ServiceBus.Notifications.NotificationHubClient 可模拟的方式创建 。

SendAsync(IPushMessage)

将通知发送到通知中心。

SendAsync(IPushMessage, IEnumerable<String>)

使用给定标记表达式将通知发送到通知中心。

SendAsync(IPushMessage, String)

使用给定标记表达式将通知发送到通知中心。

SendNotificationAsync(Notification, IEnumerable<String>)

使 Microsoft.ServiceBus.Notifications.NotificationHubClient 发送操作可模拟。

SendNotificationAsync(Notification, String)

使 Microsoft.ServiceBus.Notifications.NotificationHubClient 发送操作可模拟。

适用于