Compartir a través de


ExperimentsOperationsExtensions.CreateOrUpdateAsync Método

Definición

Cree o actualice un recurso de experimento.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Chaos.Models.Experiment> CreateOrUpdateAsync (this Microsoft.Azure.Management.Chaos.IExperimentsOperations operations, string resourceGroupName, string experimentName, Microsoft.Azure.Management.Chaos.Models.Experiment experiment, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Chaos.IExperimentsOperations * string * string * Microsoft.Azure.Management.Chaos.Models.Experiment * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Chaos.Models.Experiment>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IExperimentsOperations, resourceGroupName As String, experimentName As String, experiment As Experiment, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Experiment)

Parámetros

operations
IExperimentsOperations

Grupo de operaciones para este método de extensión.

resourceGroupName
String

Cadena que representa un grupo de recursos de Azure.

experimentName
String

Cadena que representa un nombre de recurso experiment.

experiment
Experiment

Recurso de experimento que se va a crear o actualizar.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Se aplica a