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, 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.
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
Azure SDK for .NET