ServiceBusConnectionStringBuilder Constructors

Definition

Overloads

ServiceBusConnectionStringBuilder()

Instantiates a new ServiceBusConnectionStringBuilder

ServiceBusConnectionStringBuilder(String)

Instantiates a new ServiceBusConnectionStringBuilder.

ServiceBusConnectionStringBuilder(String, String, String)

Instantiates a new ServiceBusConnectionStringBuilder.

ServiceBusConnectionStringBuilder(String, String, String, TransportType)

Instantiates a new ServiceBusConnectionStringBuilder.

ServiceBusConnectionStringBuilder(String, String, String, String)

Instantiates a new ServiceBusConnectionStringBuilder.

ServiceBusConnectionStringBuilder(String, String, String, String, TransportType)

Instantiates a new ServiceBusConnectionStringBuilder.

ServiceBusConnectionStringBuilder()

public ServiceBusConnectionStringBuilder ();
Public Sub New ()

Applies to

Product Introduced

ServiceBusConnectionStringBuilder(String)

Instantiates a new ServiceBusConnectionStringBuilder.

public ServiceBusConnectionStringBuilder (string connectionString);
new Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder : string -> Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder
Public Sub New (connectionString As String)

Parameters

connectionString
String

Connection string for namespace or the entity.

Applies to

Product Introduced

ServiceBusConnectionStringBuilder(String, String, String)

Instantiates a new ServiceBusConnectionStringBuilder.

public ServiceBusConnectionStringBuilder (string endpoint, string entityPath, string sharedAccessSignature);
new Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder : string * string * string -> Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder
Public Sub New (endpoint As String, entityPath As String, sharedAccessSignature As String)

Parameters

endpoint
String

Fully qualified endpoint.

entityPath
String
sharedAccessSignature
String

Examples

var connectionStringBuilder = new ServiceBusConnectionStringBuilder(
    "contoso.servicebus.windows.net",
    "myQueue",
    "{ ... SAS token ... }"
);

Applies to

Product Introduced

ServiceBusConnectionStringBuilder(String, String, String, TransportType)

Instantiates a new ServiceBusConnectionStringBuilder.

public ServiceBusConnectionStringBuilder (string endpoint, string entityPath, string sharedAccessSignature, Microsoft.Azure.ServiceBus.TransportType transportType);
new Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder : string * string * string * Microsoft.Azure.ServiceBus.TransportType -> Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder

Parameters

endpoint
String

Fully qualified endpoint.

entityPath
String
sharedAccessSignature
String
transportType
TransportType

Examples

var connectionStringBuilder = new ServiceBusConnectionStringBuilder(
    "contoso.servicebus.windows.net",
    "myQueue",
    "{ ... SAS token ... }",
    TransportType.Amqp
);

Applies to

Product Introduced

ServiceBusConnectionStringBuilder(String, String, String, String)

Instantiates a new ServiceBusConnectionStringBuilder.

public ServiceBusConnectionStringBuilder (string endpoint, string entityPath, string sharedAccessKeyName, string sharedAccessKey);
new Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder : string * string * string * string -> Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder
Public Sub New (endpoint As String, entityPath As String, sharedAccessKeyName As String, sharedAccessKey As String)

Parameters

namespaceName
String
entityPath
String

Path to the entity.

sharedAccessKeyName
String

Shared access key name.

sharedAccessKey
String

Shared access key.

Examples

var connectionStringBuilder = new ServiceBusConnectionStringBuilder(
    "contoso.servicebus.windows.net",
    "myQueue",
    "RootManageSharedAccessKey",
    "<sharedAccessKey>
);

Applies to

Product Introduced

ServiceBusConnectionStringBuilder(String, String, String, String, TransportType)

Instantiates a new ServiceBusConnectionStringBuilder.

public ServiceBusConnectionStringBuilder (string endpoint, string entityPath, string sharedAccessKeyName, string sharedAccessKey, Microsoft.Azure.ServiceBus.TransportType transportType);
new Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder : string * string * string * string * Microsoft.Azure.ServiceBus.TransportType -> Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder

Parameters

endpoint
String

Fully qualified endpoint.

entityPath
String
sharedAccessKeyName
String
sharedAccessKey
String
transportType
TransportType

Examples

var connectionStringBuilder = new ServiceBusConnectionStringBuilder(
    "contoso.servicebus.windows.net",
    "myQueue",
    "RootManageSharedAccessKey",
    "<sharedAccessKey>,
    TransportType.Amqp
);

Applies to

Product Introduced