Compartilhar via


NetworkWatchersOperationsExtensions.CreateOrUpdateAsync Método

Definição

Cria ou atualiza um observador de rede no grupo de recursos especificado.

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

Parâmetros

operations
INetworkWatchersOperations

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

resourceGroupName
String

O nome do grupo de recursos.

networkWatcherName
String

O nome do observador de rede.

parameters
NetworkWatcher

Parâmetros que definem o recurso de observador de rede.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a