Freigeben über


ComputeNode.RemoveFromPoolAsync Methode

Definition

Startet einen asynchronen Aufruf, um den Computeknoten aus dem Pool zu entfernen.

public System.Threading.Tasks.Task RemoveFromPoolAsync (Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption? deallocationOption = default, TimeSpan? resizeTimeout = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default, System.Threading.CancellationToken cancellationToken = default);
member this.RemoveFromPoolAsync : Nullable<Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption> * Nullable<TimeSpan> * seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function RemoveFromPoolAsync (Optional deallocationOption As Nullable(Of ComputeNodeDeallocationOption) = Nothing, Optional resizeTimeout As Nullable(Of TimeSpan) = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameter

deallocationOption
Nullable<ComputeNodeDeallocationOption>

Gibt an, wie bereits ausgeführte Aufgaben behandelt werden und wann die Knoten, auf denen diese ausgeführt werden, aus dem Pool entfernt werden können. Der Standardwert ist Requeue.

resizeTimeout
Nullable<TimeSpan>

Die maximale Zeitspanne, die der RemoveFromPool-Vorgang dauern kann, bevor er vom Azure Batch-System beendet wird.

additionalBehaviors
IEnumerable<BatchClientBehavior>

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

cancellationToken
CancellationToken

Ein CancellationToken zum Steuern der Lebensdauer des asynchronen Vorgangs.

Gibt zurück

Ein Task-Objekt, das den asynchronen Vorgang darstellt.

Gilt für: