Share via


JobScheduleOperationsExtensions.AddAsync Method

Definition

Adds a Job Schedule to the specified Account.

public static System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.JobScheduleAddHeaders> AddAsync (this Microsoft.Azure.Batch.Protocol.IJobScheduleOperations operations, Microsoft.Azure.Batch.Protocol.Models.JobScheduleAddParameter cloudJobSchedule, Microsoft.Azure.Batch.Protocol.Models.JobScheduleAddOptions jobScheduleAddOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member AddAsync : Microsoft.Azure.Batch.Protocol.IJobScheduleOperations * Microsoft.Azure.Batch.Protocol.Models.JobScheduleAddParameter * Microsoft.Azure.Batch.Protocol.Models.JobScheduleAddOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.JobScheduleAddHeaders>
<Extension()>
Public Function AddAsync (operations As IJobScheduleOperations, cloudJobSchedule As JobScheduleAddParameter, Optional jobScheduleAddOptions As JobScheduleAddOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of JobScheduleAddHeaders)

Parameters

operations
IJobScheduleOperations

The operations group for this extension method.

cloudJobSchedule
JobScheduleAddParameter

The Job Schedule to be added.

jobScheduleAddOptions
JobScheduleAddOptions

Additional parameters for the operation

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to