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

EventHubClient.CreateWithManagedIdentity 方法

定义

使用 Azure 托管标识身份验证创建 的新实例 EventHubClient

public static Microsoft.Azure.EventHubs.EventHubClient CreateWithManagedIdentity (Uri endpointAddress, string entityPath, TimeSpan? operationTimeout = default, Microsoft.Azure.EventHubs.TransportType transportType = Microsoft.Azure.EventHubs.TransportType.Amqp);
static member CreateWithManagedIdentity : Uri * string * Nullable<TimeSpan> * Microsoft.Azure.EventHubs.TransportType -> Microsoft.Azure.EventHubs.EventHubClient
Public Shared Function CreateWithManagedIdentity (endpointAddress As Uri, entityPath As String, Optional operationTimeout As Nullable(Of TimeSpan) = Nothing, Optional transportType As TransportType = Microsoft.Azure.EventHubs.TransportType.Amqp) As EventHubClient

参数

endpointAddress
Uri

事件中心的完全限定域名。 最有可能的为 {yournamespace}.servicebus.windows.net

entityPath
String

事件中心路径

operationTimeout
Nullable<TimeSpan>

事件中心操作的操作超时。

transportType
TransportType

连接的传输类型。

返回

适用于