Freigeben über


PoolOperations.DisableComputeNodeSchedulingAsync Methode

Definition

Deaktiviert die Aufgabenplanung auf dem angegebenen Computeknoten.

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

Parameter

poolId
String

Die ID des Pools.

computeNodeId
String

Die ID des Computeknotens.

disableComputeNodeSchedulingOption
Nullable<DisableComputeNodeSchedulingOption>

Gibt an, was mit derzeit ausgeführten Aufgaben zu tun ist. Der Standardwert ist Requeue.

additionalBehaviors
IEnumerable<BatchClientBehavior>

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

cancellationToken
CancellationToken

A CancellationToken zum Steuern der Lebensdauer des asynchronen Vorgangs.

Gibt zurück

Ein Task-Element, das den asynchronen Vorgang darstellt.

Hinweise

Dieser Vorgang wird asynchron ausgeführt.

Gilt für: