次の方法で共有


PoolOperations.RemoveFromPoolAsync メソッド

定義

オーバーロード

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

指定したプールから指定したコンピューティング ノードを削除します。

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

指定したプールから指定したコンピューティング ノードを削除します。

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

指定したプールから指定したコンピューティング ノードを削除します。

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

指定したプールから指定したコンピューティング ノードを削除します。

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

指定したプールから指定したコンピューティング ノードを削除します。

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

パラメーター

poolId
String

プールの ID。

computeNode
ComputeNode

ComputeNodeプールから削除する 。

deallocationOption
Nullable<ComputeNodeDeallocationOption>

既に実行されているタスクを処理する方法と、それらを実行しているノードをプールから削除できるタイミングを指定します。 既定では、 Requeueです。

resizeTimeout
Nullable<TimeSpan>

プールからコンピューティング ノードを削除するためのタイムアウトを指定します。 既定値は 15 分です。 最小値は 5 分です。

additionalBehaviors
IEnumerable<BatchClientBehavior>

の後の BatchClientBehavior Batch サービス要求に適用されるインスタンスの CustomBehaviorsコレクション。

戻り値

非同期操作を表す Task

注釈

プールから複数のコンピューティング ノードを削除する必要がある場合は、オーバーロードを使用 RemoveFromPoolAsync(String, IEnumerable<ComputeNode>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken) する方が効率的です。

プールからノードを削除できるのは、プールSteadyの が AllocationState の場合のみです。 プールのサイズが既に変更されている場合は、例外が発生します。

プールからノードを削除すると、プールの AllocationState が [安定] から に Resizing変わります。

削除操作は非同期的に実行されます。

適用対象

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

指定したプールから指定したコンピューティング ノードを削除します。

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

パラメーター

poolId
String

プールの ID。

computeNodeId
String

プールから削除するコンピューティング ノードの ID。

deallocationOption
Nullable<ComputeNodeDeallocationOption>

既に実行されているタスクを処理する方法と、それらを実行しているノードをプールから削除できるタイミングを指定します。 既定では、 Requeueです。

resizeTimeout
Nullable<TimeSpan>

プールからコンピューティング ノードを削除するためのタイムアウトを指定します。 既定値は 15 分です。 最小値は 5 分です。

additionalBehaviors
IEnumerable<BatchClientBehavior>

の後の BatchClientBehavior Batch サービス要求に適用されるインスタンスの CustomBehaviorsコレクション。

戻り値

非同期操作を表す Task

注釈

プールから複数のコンピューティング ノードを削除する必要がある場合は、オーバーロードを使用 RemoveFromPoolAsync(String, IEnumerable<String>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken) する方が効率的です。

プールからノードを削除できるのは、プールSteadyの が AllocationState の場合のみです。 プールのサイズが既に変更されている場合は、例外が発生します。

プールからノードを削除すると、プールの AllocationState が [安定] から に Resizing変わります。

削除操作は非同期的に実行されます。

適用対象

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

指定したプールから指定したコンピューティング ノードを削除します。

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

パラメーター

poolId
String

プールの ID。

computeNodes
IEnumerable<ComputeNode>

プールから削除する コンピューティング ノード

deallocationOption
Nullable<ComputeNodeDeallocationOption>

既に実行されているタスクを処理する方法と、それらを実行しているノードをプールから削除できるタイミングを指定します。 既定では、 Requeueです。

resizeTimeout
Nullable<TimeSpan>

プールからコンピューティング ノードを削除するためのタイムアウトを指定します。 既定値は 15 分です。 最小値は 5 分です。

additionalBehaviors
IEnumerable<BatchClientBehavior>

の後の BatchClientBehavior Batch サービス要求に適用されるインスタンスの CustomBehaviorsコレクション。

cancellationToken
CancellationToken

CancellationToken非同期操作の有効期間を制御するための 。

戻り値

非同期操作を表す Task

注釈

プールからノードを削除できるのは、プールSteadyの が AllocationState の場合のみです。 プールのサイズが既に変更されている場合は、例外が発生します。

プールからノードを削除すると、プールの AllocationState が [安定] から に Resizing変わります。

削除操作は非同期的に実行されます。

適用対象

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

指定したプールから指定したコンピューティング ノードを削除します。

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

パラメーター

poolId
String

プールの ID。

computeNodeIds
IEnumerable<String>

プールから削除するコンピューティング ノードの ID。

deallocationOption
Nullable<ComputeNodeDeallocationOption>

既に実行されているタスクを処理する方法と、それらを実行しているノードをプールから削除できるタイミングを指定します。 既定では、 Requeueです。

resizeTimeout
Nullable<TimeSpan>

プールからコンピューティング ノードを削除するためのタイムアウトを指定します。 既定値は 15 分です。 最小値は 5 分です。

additionalBehaviors
IEnumerable<BatchClientBehavior>

の後の BatchClientBehavior Batch サービス要求に適用されるインスタンスの CustomBehaviorsコレクション。

cancellationToken
CancellationToken

CancellationToken非同期操作の有効期間を制御するための 。

戻り値

非同期操作を表す Task

注釈

プールからノードを削除できるのは、プールSteadyの が AllocationState の場合のみです。 プールのサイズが既に変更されている場合は、例外が発生します。

プールからノードを削除すると、プールの AllocationState が [安定] から に Resizing変わります。

削除操作は非同期的に実行されます。

適用対象