Freigeben über


PoolOperations.RemoveFromPoolAsync Methode

Definition

Überlädt

RemoveFromPoolAsync(String, ComputeNode, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)

Entfernt den angegebenen Computeknoten aus dem angegebenen Pool.

RemoveFromPoolAsync(String, String, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)

Entfernt den angegebenen Computeknoten aus dem angegebenen Pool.

RemoveFromPoolAsync(String, IEnumerable<ComputeNode>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken)

Entfernt die angegebenen Computeknoten aus dem angegebenen Pool.

RemoveFromPoolAsync(String, IEnumerable<String>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken)

Entfernt die angegebenen Computeknoten aus dem angegebenen Pool.

RemoveFromPoolAsync(String, ComputeNode, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)

Entfernt den angegebenen Computeknoten aus dem angegebenen Pool.

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

Parameter

poolId
String

Die ID des Pools.

computeNode
ComputeNode

Die ComputeNode , die aus dem Pool entfernt werden soll.

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>

Gibt das Timeout für das Entfernen von Computeknoten aus dem Pool an. Der Standardwert beträgt 15 Minuten. Der Mindestwert beträgt 5 Minuten.

additionalBehaviors
IEnumerable<BatchClientBehavior>

Eine Auflistung von BatchClientBehavior Instanzen, die auf die Batch-Dienstanforderung nach CustomBehaviorsangewendet werden.

Gibt zurück

Ein Task-Element, das den asynchronen Vorgang darstellt.

Hinweise

Wenn Sie mehrere Computeknoten aus einem Pool entfernen müssen, ist es effizienter, die RemoveFromPoolAsync(String, IEnumerable<ComputeNode>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken) Überladung zu verwenden.

Sie können Knoten nur aus einem Pool entfernen, wenn der AllocationState des Pools ist Steady. Wenn die Größe des Pools bereits geändert wird, tritt eine Ausnahme auf.

Wenn Sie Knoten aus einem Pool entfernen, ändert sich der AllocationState-Wert des Pools von Steady in Resizing.

Der Remove-Vorgang wird asynchron ausgeführt.

Gilt für:

RemoveFromPoolAsync(String, String, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)

Entfernt den angegebenen Computeknoten aus dem angegebenen Pool.

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

Parameter

poolId
String

Die ID des Pools.

computeNodeId
String

Die ID des Computeknotens, der aus dem Pool entfernt werden soll.

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>

Gibt das Timeout für das Entfernen von Computeknoten aus dem Pool an. Der Standardwert beträgt 15 Minuten. Der Mindestwert beträgt 5 Minuten.

additionalBehaviors
IEnumerable<BatchClientBehavior>

Eine Auflistung von BatchClientBehavior Instanzen, die auf die Batch-Dienstanforderung nach CustomBehaviorsangewendet werden.

Gibt zurück

Ein Task-Element, das den asynchronen Vorgang darstellt.

Hinweise

Wenn Sie mehrere Computeknoten aus einem Pool entfernen müssen, ist es effizienter, die RemoveFromPoolAsync(String, IEnumerable<String>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken) Überladung zu verwenden.

Sie können Knoten nur aus einem Pool entfernen, wenn der AllocationState des Pools ist Steady. Wenn die Größe des Pools bereits geändert wird, tritt eine Ausnahme auf.

Wenn Sie Knoten aus einem Pool entfernen, ändert sich der AllocationState-Wert des Pools von Steady in Resizing.

Der Remove-Vorgang wird asynchron ausgeführt.

Gilt für:

RemoveFromPoolAsync(String, IEnumerable<ComputeNode>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken)

Entfernt die angegebenen Computeknoten aus dem angegebenen Pool.

public System.Threading.Tasks.Task RemoveFromPoolAsync (string poolId, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.ComputeNode> computeNodes, 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 : string * seq<Microsoft.Azure.Batch.ComputeNode> * Nullable<Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption> * Nullable<TimeSpan> * seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function RemoveFromPoolAsync (poolId As String, computeNodes As IEnumerable(Of ComputeNode), 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

poolId
String

Die ID des Pools.

computeNodes
IEnumerable<ComputeNode>

Die Computeknoten , die aus dem Pool entfernt werden sollen.

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>

Gibt das Timeout für das Entfernen von Computeknoten aus dem Pool an. Der Standardwert beträgt 15 Minuten. Der Mindestwert beträgt 5 Minuten.

additionalBehaviors
IEnumerable<BatchClientBehavior>

Eine Auflistung von BatchClientBehavior Instanzen, die auf die Batch-Dienstanforderung nach CustomBehaviorsangewendet werden.

cancellationToken
CancellationToken

Ein CancellationToken zum Steuern der Lebensdauer des asynchronen Vorgangs.

Gibt zurück

Ein Task-Element, das den asynchronen Vorgang darstellt.

Hinweise

Sie können Knoten nur aus einem Pool entfernen, wenn der AllocationState des Pools ist Steady. Wenn die Größe des Pools bereits geändert wird, tritt eine Ausnahme auf.

Wenn Sie Knoten aus einem Pool entfernen, ändert sich der AllocationState-Wert des Pools von Steady in Resizing.

Der Remove-Vorgang wird asynchron ausgeführt.

Gilt für:

RemoveFromPoolAsync(String, IEnumerable<String>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken)

Entfernt die angegebenen Computeknoten aus dem angegebenen Pool.

public System.Threading.Tasks.Task RemoveFromPoolAsync (string poolId, System.Collections.Generic.IEnumerable<string> computeNodeIds, 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 : string * seq<string> * Nullable<Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption> * Nullable<TimeSpan> * seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function RemoveFromPoolAsync (poolId As String, computeNodeIds As IEnumerable(Of String), 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

poolId
String

Die ID des Pools.

computeNodeIds
IEnumerable<String>

Die IDs der Computeknoten, die aus dem Pool entfernt werden sollen.

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>

Gibt das Timeout für das Entfernen von Computeknoten aus dem Pool an. Der Standardwert beträgt 15 Minuten. Der Mindestwert beträgt 5 Minuten.

additionalBehaviors
IEnumerable<BatchClientBehavior>

Eine Auflistung von BatchClientBehavior Instanzen, die auf die Batch-Dienstanforderung nach CustomBehaviorsangewendet werden.

cancellationToken
CancellationToken

Ein CancellationToken zum Steuern der Lebensdauer des asynchronen Vorgangs.

Gibt zurück

Ein Task-Element, das den asynchronen Vorgang darstellt.

Hinweise

Sie können Knoten nur aus einem Pool entfernen, wenn der AllocationState des Pools ist Steady. Wenn die Größe des Pools bereits geändert wird, tritt eine Ausnahme auf.

Wenn Sie Knoten aus einem Pool entfernen, ändert sich der AllocationState-Wert des Pools von Steady in Resizing.

Der Remove-Vorgang wird asynchron ausgeführt.

Gilt für: