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

JobScheduleOperations.DisableJobSchedule 方法

定义

禁用指定的作业计划。 禁用的计划不会创建新作业,但可能会在以后重新启用。

public void DisableJobSchedule (string jobScheduleId, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.DisableJobSchedule : string * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub DisableJobSchedule (jobScheduleId As String, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing)

参数

jobScheduleId
String

作业计划的 ID。

additionalBehaviors
IEnumerable<BatchClientBehavior>

应用于 之后的 Batch 服务请求的实例集合BatchClientBehaviorCustomBehaviors

注解

这是一个阻止操作。 有关非阻塞等效项,请参阅 DisableJobScheduleAsync(String, IEnumerable<BatchClientBehavior>, CancellationToken)

若要重新启用计划,请调用 EnableJobSchedule(String, IEnumerable<BatchClientBehavior>)

适用于