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

  • jobId
    Type: System.String

    Required. The id of the job to which the task is to be added.

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