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

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

Connection string for namespace or the entity.

Applies to

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

Fully qualified endpoint.

entityPath
System.String
sharedAccessSignature
System.String

Examples

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

Applies to

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

Fully qualified endpoint.

entityPath
System.String
sharedAccessSignature
System.String
transportType
TransportType

Examples

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

Applies to

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

Path to the entity.

sharedAccessKeyName
System.String

Shared access key name.

sharedAccessKey
System.String

Shared access key.

Examples

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

Applies to

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

Fully qualified endpoint.

entityPath
System.String
sharedAccessKeyName
System.String
sharedAccessKey
System.String
transportType
TransportType

Examples

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

Applies to