Share via


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);
static member CreateClientFromConnectionString : string * string -> Microsoft.Azure.NotificationHubs.NotificationHubClient
Public Shared Function CreateClientFromConnectionString (connectionString As String, notificationHubPath As String) As NotificationHubClient

Parameters

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.

Returns

The created NotificationHubClient.

Applies to

CreateClientFromConnectionString(String, String, Boolean)

Creates a client from connection string.

public static Microsoft.Azure.NotificationHubs.NotificationHubClient CreateClientFromConnectionString (string connectionString, string notificationHubPath, bool enableTestSend);
static member CreateClientFromConnectionString : string * string * bool -> Microsoft.Azure.NotificationHubs.NotificationHubClient
Public Shared Function CreateClientFromConnectionString (connectionString As String, notificationHubPath As String, enableTestSend As Boolean) As NotificationHubClient

Parameters

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.

Returns

The created NotificationHubClient.

Applies to