你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ComputeNodeOperationsExtensions.DisableScheduling 方法

定义

在指定的计算节点上禁用任务计划。

public static Microsoft.Azure.Batch.Protocol.Models.ComputeNodeDisableSchedulingHeaders DisableScheduling (this Microsoft.Azure.Batch.Protocol.IComputeNodeOperations operations, string poolId, string nodeId, Microsoft.Azure.Batch.Protocol.Models.DisableComputeNodeSchedulingOption? nodeDisableSchedulingOption = default, Microsoft.Azure.Batch.Protocol.Models.ComputeNodeDisableSchedulingOptions computeNodeDisableSchedulingOptions = default);
static member DisableScheduling : Microsoft.Azure.Batch.Protocol.IComputeNodeOperations * string * string * Nullable<Microsoft.Azure.Batch.Protocol.Models.DisableComputeNodeSchedulingOption> * Microsoft.Azure.Batch.Protocol.Models.ComputeNodeDisableSchedulingOptions -> Microsoft.Azure.Batch.Protocol.Models.ComputeNodeDisableSchedulingHeaders
<Extension()>
Public Function DisableScheduling (operations As IComputeNodeOperations, poolId As String, nodeId As String, Optional nodeDisableSchedulingOption As Nullable(Of DisableComputeNodeSchedulingOption) = Nothing, Optional computeNodeDisableSchedulingOptions As ComputeNodeDisableSchedulingOptions = Nothing) As ComputeNodeDisableSchedulingHeaders

参数

operations
IComputeNodeOperations

此扩展方法的操作组。

poolId
String

包含计算节点的池的 ID。

nodeId
String

要禁用任务计划的计算节点的 ID。

nodeDisableSchedulingOption
Nullable<DisableComputeNodeSchedulingOption>

在计算节点上禁用任务计划时,如何处理当前正在运行的任务。 默认值为 requeue。 可能的值包括:“requeue”、“terminate”、“taskCompletion”

computeNodeDisableSchedulingOptions
ComputeNodeDisableSchedulingOptions

操作的其他参数

返回

注解

仅当计算节点上的任务计划状态已启用时,才能禁用其当前计划状态。

适用于