Dela via


CloudTask Constructors

Definition

Overloads

CloudTask()

Default constructor to support mocking the CloudTask class.

CloudTask(String, String)

Initializes a new instance of the CloudTask class.

CloudTask()

Source:
CloudTask.cs

Default constructor to support mocking the CloudTask class.

protected CloudTask ();
Protected Sub New ()

Applies to

CloudTask(String, String)

Source:
CloudTask.cs

Initializes a new instance of the CloudTask class.

public CloudTask (string id, string commandline);
new Microsoft.Azure.Batch.CloudTask : string * string -> Microsoft.Azure.Batch.CloudTask
Public Sub New (id As String, commandline As String)

Parameters

id
String

The id of the task.

commandline
String

The command line of the task.

Remarks

The newly created CloudTask is initially not associated with any task in the Batch service. To associate it with a job and submit it to the Batch service, use AddTaskAsync(String, IEnumerable<CloudTask>, BatchClientParallelOptions, ConcurrentBag<ConcurrentDictionary<Type,IFileStagingArtifact>>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>).

Applies to