StartTask Constructors

Definition

Overloads

StartTask()

Initializes a new instance of the StartTask class.

StartTask(String, TaskContainerSettings, IList<ResourceFile>, IList<EnvironmentSetting>, UserIdentity, Nullable<Int32>, Nullable<Boolean>)

Initializes a new instance of the StartTask class.

StartTask()

Initializes a new instance of the StartTask class.

public StartTask ();
Public Sub New ()

Applies to

Product Introduced

StartTask(String, TaskContainerSettings, IList<ResourceFile>, IList<EnvironmentSetting>, UserIdentity, Nullable<Int32>, Nullable<Boolean>)

Initializes a new instance of the StartTask class.

public StartTask (string commandLine, Microsoft.Azure.Batch.Protocol.Models.TaskContainerSettings containerSettings = null, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ResourceFile> resourceFiles = null, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> environmentSettings = null, Microsoft.Azure.Batch.Protocol.Models.UserIdentity userIdentity = null, Nullable<int> maxTaskRetryCount = null, Nullable<bool> waitForSuccess = null);
new Microsoft.Azure.Batch.Protocol.Models.StartTask : string * Microsoft.Azure.Batch.Protocol.Models.TaskContainerSettings * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ResourceFile> * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> * Microsoft.Azure.Batch.Protocol.Models.UserIdentity * Nullable<int> * Nullable<bool> -> Microsoft.Azure.Batch.Protocol.Models.StartTask

Parameters

commandLine
String

The command line of the start task.

containerSettings
TaskContainerSettings

The settings for the container under which the start task runs.

resourceFiles
IList<ResourceFile>

A list of files that the Batch service will download to the compute node before running the command line.

environmentSettings
IList<EnvironmentSetting>

A list of environment variable settings for the start task.

userIdentity
UserIdentity

The user identity under which the start task runs.

maxTaskRetryCount
Nullable<Int32>

The maximum number of times the task may be retried.

waitForSuccess
Nullable<Boolean>

Whether the Batch service should wait for the start task to complete successfully (that is, to exit with exit code 0) before scheduling any tasks on the compute node.

Applies to

Product Introduced