ICloudTaskOperations.DeleteAsync Method (String, String, CloudTaskDeleteParameters, CancellationToken)
Deletes a task from the specified job.
Namespace: Microsoft.Azure.Batch.Protocol
Assembly: Microsoft.Azure.Batch (in Microsoft.Azure.Batch.dll)
Syntax
Task<CloudTaskDeleteResponse> DeleteAsync(
string jobId,
string taskId,
CloudTaskDeleteParameters parameters,
CancellationToken cancellationToken
)
Task<CloudTaskDeleteResponse^>^ DeleteAsync(
String^ jobId,
String^ taskId,
CloudTaskDeleteParameters^ parameters,
CancellationToken cancellationToken
)
abstract DeleteAsync :
jobId:string *
taskId:string *
parameters:CloudTaskDeleteParameters *
cancellationToken:CancellationToken -> Task<CloudTaskDeleteResponse>
Function DeleteAsync (
jobId As String,
taskId As String,
parameters As CloudTaskDeleteParameters,
cancellationToken As CancellationToken
) As Task(Of CloudTaskDeleteResponse)
Parameters
jobId
Type: System.StringThe id of the job from which to delete the task.
taskId
Type: System.StringThe id of the task to delete.
parameters
Type: Microsoft.Azure.Batch.Protocol.Models.CloudTaskDeleteParametersThe parameters for the request.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<CloudTaskDeleteResponse>
Response to a CloudTaskOperations.Delete request.
See Also
ICloudTaskOperations Interface
Microsoft.Azure.Batch.Protocol Namespace
Return to top