NotificationHubClient.CreateClientFromConnectionString
Method
Definition
Overloads
| CreateClientFromConnectionString(String, String) |
Creates a client from connection string. |
| CreateClientFromConnectionString(String, String, Boolean) |
Creates a client from connection string. |
CreateClientFromConnectionString(String, String)
Creates a client from connection string.
public static Microsoft.Azure.NotificationHubs.NotificationHubClient CreateClientFromConnectionString (string connectionString, string notificationHubPath);
- connectionString
- String
The connection string should have the Listen permission. AccessRights for information about the Listen permission.
- notificationHubPath
- String
The notification hub path. If the full path to the notification hub is https://yourNamespace.notificationhubs.windows.net/yourHub, then you would pass in "yourHub" for notificationPath.
The created NotificationHubClient.
CreateClientFromConnectionString(String, String, Boolean)
Creates a client from connection string.
public static Microsoft.Azure.NotificationHubs.NotificationHubClient CreateClientFromConnectionString (string connectionString, string notificationHubPath, bool enableTestSend);
- connectionString
- String
The connection string should have the Listen permission. AccessRights for information about the Listen permission.
- notificationHubPath
- String
The notification hub path. If the full path to the notification hub is https://yourNamespace.notificationhubs.windows.net/yourHub, then you would pass in "yourHub" for notificationPath.
- enableTestSend
- Boolean
Indicates if the NotificationHubClient should be used to send debug messages by setting EnableTestSend.
The created NotificationHubClient.