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

PushClient.CreateNotificationHubClient(String, String, Boolean) 方法

定义

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 实例。

适用于