你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PushClient.CreateNotificationHubClient(String, String, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
以 Microsoft.ServiceBus.Notifications.NotificationHubClient 可模拟的方式创建 。
protected virtual Microsoft.ServiceBus.Notifications.NotificationHubClient CreateNotificationHubClient (string connectionString, string hubName, bool enableTestSend);
abstract member CreateNotificationHubClient : string * string * bool -> Microsoft.ServiceBus.Notifications.NotificationHubClient
override this.CreateNotificationHubClient : string * string * bool -> Microsoft.ServiceBus.Notifications.NotificationHubClient
Protected Overridable Function CreateNotificationHubClient (connectionString As String, hubName As String, enableTestSend As Boolean) As NotificationHubClient
参数
- connectionString
- String
的 Microsoft.ServiceBus.Notifications.NotificationHubClient连接字符串。
- hubName
- String
中心的名称。
- enableTestSend
- Boolean
指示是否应启用测试发送。
返回
Microsoft.ServiceBus.Notifications.NotificationHubClient
新 Microsoft.ServiceBus.Notifications.NotificationHubClient 实例。