JobScheduleOperationsExtensions.EnableAsync Method

Definition

Enables a Job Schedule.

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)

Parameters

operations
IJobScheduleOperations

The operations group for this extension method.

jobScheduleId
System.String

The ID of the Job Schedule to enable.

jobScheduleEnableOptions
JobScheduleEnableOptions

Additional parameters for the operation

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<JobScheduleEnableHeaders>

Applies to