ICloudTaskOperations.TerminateAsync Method (String, String, CloudTaskTerminateParameters, CancellationToken)
Terminates the specified task.
Namespace: Microsoft.Azure.Batch.Protocol
Assembly: Microsoft.Azure.Batch (in Microsoft.Azure.Batch.dll)
Syntax
Task<CloudTaskTerminateResponse> TerminateAsync(
string jobId,
string taskId,
CloudTaskTerminateParameters parameters,
CancellationToken cancellationToken
)
Task<CloudTaskTerminateResponse^>^ TerminateAsync(
String^ jobId,
String^ taskId,
CloudTaskTerminateParameters^ parameters,
CancellationToken cancellationToken
)
abstract TerminateAsync :
jobId:string *
taskId:string *
parameters:CloudTaskTerminateParameters *
cancellationToken:CancellationToken -> Task<CloudTaskTerminateResponse>
Function TerminateAsync (
jobId As String,
taskId As String,
parameters As CloudTaskTerminateParameters,
cancellationToken As CancellationToken
) As Task(Of CloudTaskTerminateResponse)
Parameters
jobId
Type: System.StringThe id of the job containing the task.
taskId
Type: System.StringThe id of the task to terminate.
parameters
Type: Microsoft.Azure.Batch.Protocol.Models.CloudTaskTerminateParametersThe parameters for the request.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<CloudTaskTerminateResponse>
Response to a CloudTaskOperations.Terminate request.
See Also
ICloudTaskOperations Interface
Microsoft.Azure.Batch.Protocol Namespace
Return to top