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

StartTask 构造函数

定义

重载

StartTask()

初始化 StartTask 类的新实例。

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

初始化 StartTask 类的新实例。

StartTask()

初始化 StartTask 类的新实例。

public StartTask ();
Public Sub New ()

适用于

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

初始化 StartTask 类的新实例。

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)

参数

commandLine
String

启动任务的命令行。

resourceFiles
IList<ResourceFile>

在运行命令行之前,Batch 服务将下载到计算节点的文件列表。

environmentSettings
IList<EnvironmentSetting>

启动任务的环境变量设置列表。

userIdentity
UserIdentity

运行启动任务时所依据的用户标识。

maxTaskRetryCount
Nullable<Int32>

可以重试任务的最大次数。

waitForSuccess
Nullable<Boolean>

Batch 服务是否应等待启动任务成功完成 (即,在计算节点上计划任何任务之前,退出代码为 0) 退出。

containerSettings
TaskContainerSettings

运行启动任务的容器的设置。

适用于