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

VirtualNetworkGatewayConnectionsOperationsExtensions.GetSharedKeyAsync 方法

定义

获取 VirtualNetworkGatewayConnectionSharedKey 操作通过网络资源提供程序检索有关指定虚拟网络网关连接共享密钥的信息。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Fluent.Models.ConnectionSharedKeyInner> GetSharedKeyAsync (this Microsoft.Azure.Management.Network.Fluent.IVirtualNetworkGatewayConnectionsOperations operations, string resourceGroupName, string virtualNetworkGatewayConnectionName, System.Threading.CancellationToken cancellationToken = default);
static member GetSharedKeyAsync : Microsoft.Azure.Management.Network.Fluent.IVirtualNetworkGatewayConnectionsOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Fluent.Models.ConnectionSharedKeyInner>
<Extension()>
Public Function GetSharedKeyAsync (operations As IVirtualNetworkGatewayConnectionsOperations, resourceGroupName As String, virtualNetworkGatewayConnectionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConnectionSharedKeyInner)

参数

operations
IVirtualNetworkGatewayConnectionsOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

virtualNetworkGatewayConnectionName
String

虚拟网络网关连接共享密钥名称。

cancellationToken
CancellationToken

取消标记。

返回

适用于