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

VirtualNetworkGatewayConnectionsOperationsExtensions.BeginSetSharedKeyAsync 方法

定义

放置 VirtualNetworkGatewayConnectionSharedKey 操作通过网络资源提供程序为指定资源组中传递的虚拟网络网关连接设置虚拟网络网关连接共享密钥。

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

参数

operations
IVirtualNetworkGatewayConnectionsOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

virtualNetworkGatewayConnectionName
String

虚拟网络网关连接名称。

parameters
ConnectionSharedKey

通过网络资源提供程序提供给 Begin Set 虚拟网络 网关连接共享密钥操作的参数。

cancellationToken
CancellationToken

取消标记。

返回

适用于