你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ServiceBusConnectionStringBuilder 构造函数

定义

重载

ServiceBusConnectionStringBuilder()

实例化新的 ServiceBusConnectionStringBuilder

ServiceBusConnectionStringBuilder(String)

实例化一个新的 ServiceBusConnectionStringBuilder

ServiceBusConnectionStringBuilder(String, String, String)

实例化一个新的 ServiceBusConnectionStringBuilder

ServiceBusConnectionStringBuilder(String, String, String, TransportType)

实例化一个新的 ServiceBusConnectionStringBuilder

ServiceBusConnectionStringBuilder(String, String, String, String)

实例化一个新的 ServiceBusConnectionStringBuilder

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

实例化一个新的 ServiceBusConnectionStringBuilder

ServiceBusConnectionStringBuilder()

Source:
ServiceBusConnectionStringBuilder.cs
public ServiceBusConnectionStringBuilder ();
Public Sub New ()

适用于

ServiceBusConnectionStringBuilder(String)

Source:
ServiceBusConnectionStringBuilder.cs

实例化一个新的 ServiceBusConnectionStringBuilder

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

参数

connectionString
String

命名空间或实体的连接字符串。

适用于

ServiceBusConnectionStringBuilder(String, String, String)

Source:
ServiceBusConnectionStringBuilder.cs

实例化一个新的 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)

参数

endpoint
String

完全限定的终结点。

entityPath
String
sharedAccessSignature
String

示例

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

适用于

ServiceBusConnectionStringBuilder(String, String, String, TransportType)

Source:
ServiceBusConnectionStringBuilder.cs

实例化一个新的 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
Public Sub New (endpoint As String, entityPath As String, sharedAccessSignature As String, transportType As TransportType)

参数

endpoint
String

完全限定的终结点。

entityPath
String
sharedAccessSignature
String
transportType
TransportType

示例

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

适用于

ServiceBusConnectionStringBuilder(String, String, String, String)

Source:
ServiceBusConnectionStringBuilder.cs

实例化一个新的 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)

参数

endpoint
String

完全限定的终结点。

entityPath
String
sharedAccessKeyName
String
sharedAccessKey
String

示例

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

适用于

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

Source:
ServiceBusConnectionStringBuilder.cs

实例化一个新的 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
Public Sub New (endpoint As String, entityPath As String, sharedAccessKeyName As String, sharedAccessKey As String, transportType As TransportType)

参数

endpoint
String

完全限定的终结点。

entityPath
String
sharedAccessKeyName
String
sharedAccessKey
String
transportType
TransportType

示例

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

适用于