JobScheduleOperationsExtensions.TerminateAsync Method

Definition

Terminates a Job Schedule.

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

Parameters

operations
IJobScheduleOperations

The operations group for this extension method.

jobScheduleId
System.String

The ID of the Job Schedule to terminates.

jobScheduleTerminateOptions
JobScheduleTerminateOptions

Additional parameters for the operation

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<JobScheduleTerminateHeaders>

Applies to