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

JobScheduleOperationsExtensions.EnableAsync 方法

定义

启用作业计划。

public static System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.JobScheduleEnableHeaders> EnableAsync (this Microsoft.Azure.Batch.Protocol.IJobScheduleOperations operations, string jobScheduleId, Microsoft.Azure.Batch.Protocol.Models.JobScheduleEnableOptions jobScheduleEnableOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member EnableAsync : Microsoft.Azure.Batch.Protocol.IJobScheduleOperations * string * Microsoft.Azure.Batch.Protocol.Models.JobScheduleEnableOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.JobScheduleEnableHeaders>
<Extension()>
Public Function EnableAsync (operations As IJobScheduleOperations, jobScheduleId As String, Optional jobScheduleEnableOptions As JobScheduleEnableOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of JobScheduleEnableHeaders)

参数

operations
IJobScheduleOperations

此扩展方法的操作组。

jobScheduleId
String

要启用的作业计划的 ID。

jobScheduleEnableOptions
JobScheduleEnableOptions

操作的其他参数

cancellationToken
CancellationToken

取消标记。

返回

适用于