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
System.String

The connection string.

notificationHubPath
System.String

The notification hub path.

Returns

NotificationHubClient

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
System.String

The connection string.

notificationHubPath
System.String

The notification hub path.

enableTestSend
System.Boolean

true to enable test send; otherwise, false.

Returns

NotificationHubClient

The created NotificationHubClient.

Applies to