你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
StartTask 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
运行启动任务时所依据的用户标识。
- containerSettings
- TaskContainerSettings
运行启动任务的容器的设置。