StartTask Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
- System.String
The command line of the start task.
- containerSettings
- TaskContainerSettings
The settings for the container under which the start task runs.
- resourceFiles
- System.Collections.Generic.IList<ResourceFile>
A list of files that the Batch service will download to the compute node before running the command line.
- environmentSettings
- System.Collections.Generic.IList<EnvironmentSetting>
A list of environment variable settings for the start task.
- userIdentity
- UserIdentity
The user identity under which the start task runs.
- maxTaskRetryCount
- System.Nullable<System.Int32>
The maximum number of times the task may be retried.
- waitForSuccess
- System.Nullable<System.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.