你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PoolOperations.RemoveFromPool 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RemoveFromPool(String, ComputeNode, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)
从指定的池中删除指定的计算节点。
public void RemoveFromPool (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.RemoveFromPool : string * Microsoft.Azure.Batch.ComputeNode * Nullable<Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption> * Nullable<TimeSpan> * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub RemoveFromPool (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)
参数
- poolId
- String
池的 id。
- computeNode
- ComputeNode
ComputeNode要从池中删除的 。
- deallocationOption
- Nullable<ComputeNodeDeallocationOption>
指定如何处理已运行的任务,以及何时可能从池中删除运行这些任务的节点。 默认为 Requeue。
- additionalBehaviors
- IEnumerable<BatchClientBehavior>
在 之后应用于 Batch 服务请求的实例集合BatchClientBehaviorCustomBehaviors。
注解
如果需要从池中删除多个计算节点,则使用 RemoveFromPool(String, IEnumerable<ComputeNode>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>) 重载会更高效。
仅当池的 为 Steady时,AllocationState才能从池中删除节点。 如果池已在调整大小,则会发生异常。
从池中删除节点时,池的 AllocationState 将从“稳定”更改为 Resizing。
这是一个阻止操作。 有关非阻塞等效项,请参阅 RemoveFromPoolAsync(String, ComputeNode, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)。
适用于
RemoveFromPool(String, IEnumerable<ComputeNode>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)
从指定的池中删除指定的计算节点。
public void RemoveFromPool (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);
member this.RemoveFromPool : string * seq<Microsoft.Azure.Batch.ComputeNode> * Nullable<Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption> * Nullable<TimeSpan> * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub RemoveFromPool (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)
参数
- poolId
- String
池的 id。
- computeNodes
- IEnumerable<ComputeNode>
要从池中删除的 计算节点 。
- deallocationOption
- Nullable<ComputeNodeDeallocationOption>
指定如何处理已运行的任务,以及何时可能从池中删除运行这些任务的节点。 默认为 Requeue。
- additionalBehaviors
- IEnumerable<BatchClientBehavior>
在 之后应用于 Batch 服务请求的实例集合BatchClientBehaviorCustomBehaviors。
注解
仅当池的 为 Steady时,AllocationState才能从池中删除节点。 如果池已在调整大小,则会发生异常。
从池中删除节点时,池的 AllocationState 将从“稳定”更改为 Resizing。
这是一个阻止操作。 有关非阻塞等效项,请参阅 RemoveFromPoolAsync(String, IEnumerable<ComputeNode>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken)。
适用于
RemoveFromPool(String, IEnumerable<String>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)
从指定的池中删除指定的计算节点。
public void RemoveFromPool (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);
member this.RemoveFromPool : string * seq<string> * Nullable<Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption> * Nullable<TimeSpan> * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub RemoveFromPool (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)
参数
- poolId
- String
池的 id。
- computeNodeIds
- IEnumerable<String>
要从池中删除的计算节点的 ID。
- deallocationOption
- Nullable<ComputeNodeDeallocationOption>
指定如何处理已运行的任务,以及何时可能从池中删除运行这些任务的节点。 默认为 Requeue。
- additionalBehaviors
- IEnumerable<BatchClientBehavior>
在 之后应用于 Batch 服务请求的实例集合BatchClientBehaviorCustomBehaviors。
注解
仅当池的 为 Steady时,AllocationState才能从池中删除节点。 如果池已在调整大小,则会发生异常。
从池中删除节点时,池的 AllocationState 将从“稳定”更改为 Resizing。
这是一个阻止操作。 有关非阻塞等效项,请参阅 RemoveFromPoolAsync(String, IEnumerable<String>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>, CancellationToken)。
适用于
RemoveFromPool(String, String, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)
从指定的池中删除指定的计算节点。
public void RemoveFromPool (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.RemoveFromPool : string * string * Nullable<Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption> * Nullable<TimeSpan> * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub RemoveFromPool (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)
参数
- poolId
- String
池的 id。
- computeNodeId
- String
要从池中删除的计算节点的 ID。
- deallocationOption
- Nullable<ComputeNodeDeallocationOption>
指定如何处理已运行的任务,以及何时可能从池中删除运行这些任务的节点。 默认为 Requeue。
- additionalBehaviors
- IEnumerable<BatchClientBehavior>
在 之后应用于 Batch 服务请求的实例集合BatchClientBehaviorCustomBehaviors。
注解
如果需要从池中删除多个计算节点,则使用 RemoveFromPool(String, IEnumerable<String>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>) 重载会更高效。
仅当池的 为 Steady时,AllocationState才能从池中删除节点。 如果池已在调整大小,则会发生异常。
从池中删除节点时,池的 AllocationState 将从“稳定”更改为 Resizing。
这是一个阻止操作。 有关非阻塞等效项,请参阅 RemoveFromPoolAsync(String, String, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)。