StartTask Constructors

Definition

Overloads

StartTask()

Initializes a new instance of the StartTask class.

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

Initializes a new instance of the StartTask class.

StartTask()

Initializes a new instance of the StartTask class.

public StartTask ();
Public Sub New ()

Applies to

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

Initializes a new instance of the StartTask class.

public StartTask (string commandLine = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Batch.Models.ResourceFile> resourceFiles = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Batch.Models.EnvironmentSetting> environmentSettings = default, Microsoft.Azure.Management.Batch.Models.UserIdentity userIdentity = default, int? maxTaskRetryCount = default, bool? waitForSuccess = default, Microsoft.Azure.Management.Batch.Models.TaskContainerSettings containerSettings = default);
new Microsoft.Azure.Management.Batch.Models.StartTask : string * System.Collections.Generic.IList<Microsoft.Azure.Management.Batch.Models.ResourceFile> * System.Collections.Generic.IList<Microsoft.Azure.Management.Batch.Models.EnvironmentSetting> * Microsoft.Azure.Management.Batch.Models.UserIdentity * Nullable<int> * Nullable<bool> * Microsoft.Azure.Management.Batch.Models.TaskContainerSettings -> Microsoft.Azure.Management.Batch.Models.StartTask
Public Sub New (Optional commandLine As String = Nothing, Optional resourceFiles As IList(Of ResourceFile) = Nothing, Optional environmentSettings As IList(Of EnvironmentSetting) = Nothing, Optional userIdentity As UserIdentity = Nothing, Optional maxTaskRetryCount As Nullable(Of Integer) = Nothing, Optional waitForSuccess As Nullable(Of Boolean) = Nothing, Optional containerSettings As TaskContainerSettings = Nothing)

Parameters

commandLine
String

The command line of the start task.

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.

containerSettings
TaskContainerSettings

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

Applies to