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

ServiceBusConnectionStringBuilder 类

定义

创建和管理连接字符串的内容。 可以使用此类来构造用于创建客户端消息实体的连接字符串。 它还可用于对现有连接字符串执行基本验证。

public class ServiceBusConnectionStringBuilder
type ServiceBusConnectionStringBuilder = class
Public Class ServiceBusConnectionStringBuilder
继承
ServiceBusConnectionStringBuilder

构造函数

ServiceBusConnectionStringBuilder()

初始化 ServiceBusConnectionStringBuilder 类的新实例。

ServiceBusConnectionStringBuilder(String)

使用指定的现有连接字符串初始化 类的新实例 ServiceBusConnectionStringBuilder

属性

Audience

获取或设置 Azure Active Directory 身份验证的受众。

Authentication

设置为“托管标识”时启用 Azure Active Directory 托管标识身份验证

EnableAmqpLinkRedirect

创建和管理连接字符串的内容。 可以使用此类来构造用于创建客户端消息实体的连接字符串。 它还可用于对现有连接字符串执行基本验证。

Endpoints

获取服务终结点的集合。 每个终结点必须引用相同的服务总线命名空间。

EntityPath

获取或设置 、 PathPath 属性的Path实体路径。

ManagementPort

获取或设置管理操作的 TCP 端口号。

OAuthDomain

获取或设置连接的身份验证域。

OAuthPassword

获取或设置连接的身份验证密码。

OAuthUsername

获取或设置连接的身份验证用户名。

OperationTimeout

获取或设置 , TimeSpan 它指定消息传递操作在超时之前必须完成多长时间。

Publisher

获取或设置发布者标识符。

RuntimePort

获取或设置运行时操作的 TCP 端口号。

SharedAccessKey

获取或设置连接身份验证的共享访问密钥。

SharedAccessKeyName

获取或设置共享访问密钥的名称。

SharedAccessSignature

获取或设置 SAS 访问令牌。

SharedSecretIssuerName

获取或设置共享机密颁发者名称。

SharedSecretIssuerSecret

获取或设置共享机密颁发者机密。

StsEndpoints

获取一组 STS 终结点。

TransportType

获取或设置要用于客户端消息传送实体的传输类型。

WindowsCredentialDomain

获取或设置 Windows 凭据域。

WindowsCredentialPassword

获取或设置 Windows 凭据密码。

WindowsCredentialUsername

获取或设置 Windows 凭据用户名。

方法

CreateUsingOAuthCredential(IEnumerable<Uri>, IEnumerable<Uri>, Int32, Int32, String, String, SecureString)

使用身份验证凭据创建连接字符串。

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

使用共享访问密钥创建连接字符串。

CreateUsingSharedAccessKey(Uri, String, String)

使用共享访问密钥创建连接字符串。

CreateUsingSharedAccessSignature(Uri, String, String, String)

使用 SAS 凭据创建连接字符串。

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

使用共享机密凭据创建连接字符串。

CreateUsingSharedSecret(Uri, String, String)

使用共享机密凭据创建连接字符串。

CreateUsingWindowsCredential(IEnumerable<Uri>, IEnumerable<Uri>, Int32, Int32, String, String, SecureString)

使用 Windows 凭据创建连接字符串。

GetAbsoluteManagementEndpoints()

检索绝对管理终结点。

GetAbsoluteRuntimeEndpoints()

检索绝对运行时终结点。

ToString()

返回表示当前对象的字符串。

适用于