ICloudTaskOperations.AddAsync Method (String, CloudTaskAddParameters, CancellationToken)
Adds a task to the specified job.
Namespace: Microsoft.Azure.Batch.Protocol
Assembly: Microsoft.Azure.Batch (in Microsoft.Azure.Batch.dll)
Syntax
Task<CloudTaskAddResponse> AddAsync(
string jobId,
CloudTaskAddParameters parameters,
CancellationToken cancellationToken
)
Task<CloudTaskAddResponse^>^ AddAsync(
String^ jobId,
CloudTaskAddParameters^ parameters,
CancellationToken cancellationToken
)
abstract AddAsync :
jobId:string *
parameters:CloudTaskAddParameters *
cancellationToken:CancellationToken -> Task<CloudTaskAddResponse>
Function AddAsync (
jobId As String,
parameters As CloudTaskAddParameters,
cancellationToken As CancellationToken
) As Task(Of CloudTaskAddResponse)
Parameters
jobId
Type: System.StringThe id of the job to which the task is to be added.
parameters
Type: Microsoft.Azure.Batch.Protocol.Models.CloudTaskAddParametersThe parameters for the request.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<CloudTaskAddResponse>
Response to a CloudTaskOperations.Add request.
See Also
ICloudTaskOperations Interface
Microsoft.Azure.Batch.Protocol Namespace
Return to top