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

QueueClient.CreateWithAzureActiveDirectory 方法

定义

使用 Azure Active Directory 身份验证上下文创建 的新实例 QueueClient

public static Microsoft.ServiceBus.Messaging.QueueClient CreateWithAzureActiveDirectory (Uri endpointAddress, string path, Microsoft.ServiceBus.AzureActiveDirectoryTokenProvider.AuthenticationCallback authCallback, string authority, Microsoft.ServiceBus.Messaging.ReceiveMode mode = Microsoft.ServiceBus.Messaging.ReceiveMode.PeekLock, TimeSpan? operationTimeout = default, Microsoft.ServiceBus.Messaging.TransportType transportType = Microsoft.ServiceBus.Messaging.TransportType.NetMessaging);
static member CreateWithAzureActiveDirectory : Uri * string * Microsoft.ServiceBus.AzureActiveDirectoryTokenProvider.AuthenticationCallback * string * Microsoft.ServiceBus.Messaging.ReceiveMode * Nullable<TimeSpan> * Microsoft.ServiceBus.Messaging.TransportType -> Microsoft.ServiceBus.Messaging.QueueClient
Public Shared Function CreateWithAzureActiveDirectory (endpointAddress As Uri, path As String, authCallback As AzureActiveDirectoryTokenProvider.AuthenticationCallback, authority As String, Optional mode As ReceiveMode = Microsoft.ServiceBus.Messaging.ReceiveMode.PeekLock, Optional operationTimeout As Nullable(Of TimeSpan) = Nothing, Optional transportType As TransportType = Microsoft.ServiceBus.Messaging.TransportType.NetMessaging) As QueueClient

参数

endpointAddress
Uri

服务总线的完全限定域名。 最有可能的为 {yournamespace}.servicebus.windows.net

path
String

队列的路径。

authCallback
AzureActiveDirectoryTokenProvider.AuthenticationCallback

用于提供访问令牌的身份验证委托。

authority
String

颁发令牌的颁发机构的地址。

mode
ReceiveMode

接收模式。

operationTimeout
Nullable<TimeSpan>

TimeSpan 指定消息传递操作在超时之前必须完成多长时间

transportType
TransportType

消息传递传输类型。

返回

创建的 QueueClient

适用于