Freigeben über


ComputeNodeUser.CommitAsync Methode

Definition

Startet einen asynchronen Aufruf zum Erstellen oder Aktualisieren eines Benutzerkontos auf dem Computeknoten.

public System.Threading.Tasks.Task CommitAsync (Microsoft.Azure.Batch.ComputeNodeUserCommitSemantics addOrUpdate = Microsoft.Azure.Batch.ComputeNodeUserCommitSemantics.AddUser, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default, System.Threading.CancellationToken cancellationToken = default);
member this.CommitAsync : Microsoft.Azure.Batch.ComputeNodeUserCommitSemantics * seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CommitAsync (Optional addOrUpdate As ComputeNodeUserCommitSemantics = Microsoft.Azure.Batch.ComputeNodeUserCommitSemantics.AddUser, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameter

addOrUpdate
ComputeNodeUserCommitSemantics

Wählt den Typ des auszuführenden Commitvorgangs aus.

additionalBehaviors
IEnumerable<BatchClientBehavior>

Eine Auflistung von BatchClientBehavior-Instanzen, die nach den CustomBehaviors auf das aktuelle Objekt angewendet werden.

cancellationToken
CancellationToken

A CancellationToken zum Steuern der Lebensdauer des asynchronen Vorgangs.

Gibt zurück

Ein Task-Objekt, das den asynchronen Vorgang darstellt.

Gilt für: