Compartilhar via


HubVirtualNetworkConnectionsOperationsExtensions.CreateOrUpdateAsync Método

Definição

Cria uma conexão de rede virtual do hub se ela não existir, atualiza a existente.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.HubVirtualNetworkConnection> CreateOrUpdateAsync (this Microsoft.Azure.Management.Network.IHubVirtualNetworkConnectionsOperations operations, string resourceGroupName, string virtualHubName, string connectionName, Microsoft.Azure.Management.Network.Models.HubVirtualNetworkConnection hubVirtualNetworkConnectionParameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Network.IHubVirtualNetworkConnectionsOperations * string * string * string * Microsoft.Azure.Management.Network.Models.HubVirtualNetworkConnection * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.HubVirtualNetworkConnection>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IHubVirtualNetworkConnectionsOperations, resourceGroupName As String, virtualHubName As String, connectionName As String, hubVirtualNetworkConnectionParameters As HubVirtualNetworkConnection, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HubVirtualNetworkConnection)

Parâmetros

operations
IHubVirtualNetworkConnectionsOperations

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

resourceGroupName
String

O nome do grupo de recursos do HubVirtualNetworkConnection.

virtualHubName
String

O nome do VirtualHub.

connectionName
String

O nome do HubVirtualNetworkConnection.

hubVirtualNetworkConnectionParameters
HubVirtualNetworkConnection

Parâmetros fornecidos para criar ou atualizar uma conexão de rede virtual do hub.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a