共用方式為


ServiceBusConnectionStringBuilder.CreateUsingSharedAccessKey Method

Definition

Overloads

CreateUsingSharedAccessKey(Uri, String, String)

Create a connection string using the shared access key.

CreateUsingSharedAccessKey(IEnumerable<Uri>, Int32, Int32, String, String)

Create a connection string using the shared access key.

CreateUsingSharedAccessKey(Uri, String, String)

Create a connection string using the shared access key.

public static string CreateUsingSharedAccessKey (Uri endpoint, string keyName, string key);
static member CreateUsingSharedAccessKey : Uri * string * string -> string
Public Shared Function CreateUsingSharedAccessKey (endpoint As Uri, keyName As String, key As String) As String

Parameters

endpoint
Uri

The endpoint.

keyName
String

The name of the shared access key.

key
String

The shared access key.

Returns

The created connection using the shared access key.

Applies to

CreateUsingSharedAccessKey(IEnumerable<Uri>, Int32, Int32, String, String)

Create a connection string using the shared access key.

public static string CreateUsingSharedAccessKey (System.Collections.Generic.IEnumerable<Uri> endpoints, int runtimePort, int managementPort, string keyName, string key);
static member CreateUsingSharedAccessKey : seq<Uri> * int * int * string * string -> string
Public Shared Function CreateUsingSharedAccessKey (endpoints As IEnumerable(Of Uri), runtimePort As Integer, managementPort As Integer, keyName As String, key As String) As String

Parameters

endpoints
IEnumerable<Uri>

The set of endpoints.

runtimePort
Int32

The runtime port.

managementPort
Int32

The management port.

keyName
String

The name of the shared access key.

key
String

The shared access key

Returns

The created connection using the shared access key.

Applies to