Compartilhar via


VirtualNetworkGatewayConnectionsOperationsExtensions.SetSharedKeyAsync Método

Definição

A operação Put VirtualNetworkGatewayConnectionSharedKey define a chave compartilhada de conexão de gateway de rede virtual para conexão de gateway de rede virtual passada no grupo de recursos especificado por meio do provedor de recursos de rede.

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

Parâmetros

operations
IVirtualNetworkGatewayConnectionsOperations

O grupo de operações para esse método de extensão.

resourceGroupName
String

O nome do grupo de recursos.

virtualNetworkGatewayConnectionName
String

O nome da conexão do gateway de rede virtual.

parameters
ConnectionSharedKeyInner

Parâmetros fornecidos para a operação de chave compartilhada Begin Set Rede Virtual Gateway por meio do provedor de recursosNetwork.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a