CloudTaskOperationsExtensions.AddAsync Method (ICloudTaskOperations, String, CloudTaskAddParameters)
Adds a task to the specified job.
Namespace: Microsoft.Azure.Batch.Protocol
Assembly: Microsoft.Azure.Batch (in Microsoft.Azure.Batch.dll)
Syntax
public static Task<CloudTaskAddResponse> AddAsync(
this ICloudTaskOperations operations,
string jobId,
CloudTaskAddParameters parameters
)
public:
[ExtensionAttribute]
static Task<CloudTaskAddResponse^>^ AddAsync(
ICloudTaskOperations^ operations,
String^ jobId,
CloudTaskAddParameters^ parameters
)
static member AddAsync :
operations:ICloudTaskOperations *
jobId:string *
parameters:CloudTaskAddParameters -> Task<CloudTaskAddResponse>
<ExtensionAttribute>
Public Shared Function AddAsync (
operations As ICloudTaskOperations,
jobId As String,
parameters As CloudTaskAddParameters
) As Task(Of CloudTaskAddResponse)
Parameters
operations
Type: Microsoft.Azure.Batch.Protocol.ICloudTaskOperationsReference to the Microsoft.Azure.Batch.Protocol.ICloudTaskOperations.
jobId
Type: System.StringRequired. The id of the job to which the task is to be added.
parameters
Type: Microsoft.Azure.Batch.Protocol.Models.CloudTaskAddParametersRequired. The parameters for the request.
Return Value
Type: System.Threading.Tasks.Task<CloudTaskAddResponse>
Response to a CloudTaskOperations.Add request.
See Also
CloudTaskOperationsExtensions Class
Microsoft.Azure.Batch.Protocol Namespace
Return to top