你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CloudTask Constructors

Definition

Overloads

Name Description
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