Language

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

The endpoint.

keyName
System.String

The name of the shared access key.

key
System.String

The shared access key.

Returns

System.String

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
System.Collections.Generic.IEnumerable<System.Uri>

The set of endpoints.

runtimePort
System.Int32

The runtime port.

managementPort
System.Int32

The management port.

keyName
System.String

The name of the shared access key.

key
System.String

The shared access key

Returns

System.String

The created connection using the shared access key.

Applies to