次の方法で共有


ComputeNodeOperationsExtensions.DisableSchedulingAsync メソッド

定義

指定したコンピューティング ノードでタスク スケジュールを無効にします。

public static System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeDisableSchedulingHeaders> DisableSchedulingAsync (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, System.Threading.CancellationToken cancellationToken = default);
static member DisableSchedulingAsync : Microsoft.Azure.Batch.Protocol.IComputeNodeOperations * string * string * Nullable<Microsoft.Azure.Batch.Protocol.Models.DisableComputeNodeSchedulingOption> * Microsoft.Azure.Batch.Protocol.Models.ComputeNodeDisableSchedulingOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeDisableSchedulingHeaders>
<Extension()>
Public Function DisableSchedulingAsync (operations As IComputeNodeOperations, poolId As String, nodeId As String, Optional nodeDisableSchedulingOption As Nullable(Of DisableComputeNodeSchedulingOption) = Nothing, Optional computeNodeDisableSchedulingOptions As ComputeNodeDisableSchedulingOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ComputeNodeDisableSchedulingHeaders)

パラメーター

operations
IComputeNodeOperations

この拡張メソッドの操作グループ。

poolId
String

コンピューティング ノードを含むプールの ID。

nodeId
String

タスクのスケジュール設定を無効にするコンピューティング ノードの ID。

nodeDisableSchedulingOption
Nullable<DisableComputeNodeSchedulingOption>

コンピューティング ノードでタスク スケジュールを無効にするときの現在実行中のタスクの操作。 既定値は requeue です。 使用できる値は、'requeue'、'terminate'、'taskCompletion' です。

computeNodeDisableSchedulingOptions
ComputeNodeDisableSchedulingOptions

操作の追加パラメーター

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

注釈

コンピューティング ノードでタスク スケジュールを無効にできるのは、現在のスケジュール状態が有効になっている場合のみです。

適用対象