Freigeben über


ComputeNode.DisableScheduling Methode

Definition

Deaktiviert die Aufgabenplanung auf dem Computeknoten.

public void DisableScheduling (Microsoft.Azure.Batch.Common.DisableComputeNodeSchedulingOption? disableComputeNodeSchedulingOption, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.DisableScheduling : Nullable<Microsoft.Azure.Batch.Common.DisableComputeNodeSchedulingOption> * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub DisableScheduling (disableComputeNodeSchedulingOption As Nullable(Of DisableComputeNodeSchedulingOption), Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing)

Parameter

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.

Hinweise

Dies ist ein blockierende Vorgang. Eine nicht blockierende Entsprechung finden Sie unter DisableSchedulingAsync(Nullable<DisableComputeNodeSchedulingOption>, IEnumerable<BatchClientBehavior>, CancellationToken).

Gilt für: