Partager via


ExperimentsOperationsExtensions.CreateOrUpdateAsync Méthode

Définition

Créer ou mettre à jour une ressource Experiment.

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)

Paramètres

operations
IExperimentsOperations

Groupe d’opérations pour cette méthode d’extension.

resourceGroupName
String

Chaîne qui représente un groupe de ressources Azure.

experimentName
String

Chaîne qui représente un nom de ressource Experiment.

experiment
Experiment

Ressource d’expérience à créer ou à mettre à jour.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

S’applique à