Freigeben über


NotificationHubClient.CreateClientFromConnectionString Methode

Definition

Überlädt

CreateClientFromConnectionString(String, String)

Erstellt einen Client aus der Verbindungszeichenfolge.

CreateClientFromConnectionString(String, String, Boolean)

Erstellt einen Client aus der Verbindungszeichenfolge.

CreateClientFromConnectionString(String, String)

Erstellt einen Client aus der Verbindungszeichenfolge.

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

Parameter

connectionString
String

Die Verbindungszeichenfolge sollte über die Berechtigung Listen verfügen. AccessRights Informationen zur Berechtigung "Listen" erhalten.

notificationHubPath
String

Der Notification Hub-Pfad. Wenn der vollständige Pfad zum Notification Hub lautet https://yourNamespace.notificationhubs.windows.net/yourHub, würden Sie "YourHub" für notificationPath übergeben.

Gibt zurück

Der erstellte NotificationHubClient.

Gilt für:

CreateClientFromConnectionString(String, String, Boolean)

Erstellt einen Client aus der Verbindungszeichenfolge.

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

Parameter

connectionString
String

Die Verbindungszeichenfolge sollte über die Berechtigung Listen verfügen. AccessRights Informationen zur Berechtigung "Listen" erhalten.

notificationHubPath
String

Der Notification Hub-Pfad. Wenn der vollständige Pfad zum Notification Hub lautet https://yourNamespace.notificationhubs.windows.net/yourHub, würden Sie "YourHub" für notificationPath übergeben.

enableTestSend
Boolean

Gibt an, ob der NotificationHubClient zum Senden von Debugnachrichten verwendet werden soll, indem festgelegt EnableTestSendwird.

Gibt zurück

Der erstellte NotificationHubClient.

Gilt für: