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

JobManagerTask 构造函数

定义

重载

JobManagerTask()

初始化 JobManagerTask 类的新实例。

JobManagerTask(String, String, String, TaskContainerSettings, IList<ResourceFile>, IList<OutputFile>, IList<EnvironmentSetting>, TaskConstraints, Nullable<Int32>, Nullable<Boolean>, UserIdentity, Nullable<Boolean>, IList<ApplicationPackageReference>, AuthenticationTokenSettings, Nullable<Boolean>)

初始化 JobManagerTask 类的新实例。

JobManagerTask()

Source:
JobManagerTask.cs

初始化 JobManagerTask 类的新实例。

public JobManagerTask ();
Public Sub New ()

适用于

JobManagerTask(String, String, String, TaskContainerSettings, IList<ResourceFile>, IList<OutputFile>, IList<EnvironmentSetting>, TaskConstraints, Nullable<Int32>, Nullable<Boolean>, UserIdentity, Nullable<Boolean>, IList<ApplicationPackageReference>, AuthenticationTokenSettings, Nullable<Boolean>)

Source:
JobManagerTask.cs

初始化 JobManagerTask 类的新实例。

public JobManagerTask (string id, string commandLine, string displayName = default, Microsoft.Azure.Batch.Protocol.Models.TaskContainerSettings containerSettings = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ResourceFile> resourceFiles = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.OutputFile> outputFiles = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> environmentSettings = default, Microsoft.Azure.Batch.Protocol.Models.TaskConstraints constraints = default, int? requiredSlots = default, bool? killJobOnCompletion = default, Microsoft.Azure.Batch.Protocol.Models.UserIdentity userIdentity = default, bool? runExclusive = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ApplicationPackageReference> applicationPackageReferences = default, Microsoft.Azure.Batch.Protocol.Models.AuthenticationTokenSettings authenticationTokenSettings = default, bool? allowLowPriorityNode = default);
new Microsoft.Azure.Batch.Protocol.Models.JobManagerTask : string * string * 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.OutputFile> * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> * Microsoft.Azure.Batch.Protocol.Models.TaskConstraints * Nullable<int> * Nullable<bool> * Microsoft.Azure.Batch.Protocol.Models.UserIdentity * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ApplicationPackageReference> * Microsoft.Azure.Batch.Protocol.Models.AuthenticationTokenSettings * Nullable<bool> -> Microsoft.Azure.Batch.Protocol.Models.JobManagerTask
Public Sub New (id As String, commandLine As String, Optional displayName As String = Nothing, Optional containerSettings As TaskContainerSettings = Nothing, Optional resourceFiles As IList(Of ResourceFile) = Nothing, Optional outputFiles As IList(Of OutputFile) = Nothing, Optional environmentSettings As IList(Of EnvironmentSetting) = Nothing, Optional constraints As TaskConstraints = Nothing, Optional requiredSlots As Nullable(Of Integer) = Nothing, Optional killJobOnCompletion As Nullable(Of Boolean) = Nothing, Optional userIdentity As UserIdentity = Nothing, Optional runExclusive As Nullable(Of Boolean) = Nothing, Optional applicationPackageReferences As IList(Of ApplicationPackageReference) = Nothing, Optional authenticationTokenSettings As AuthenticationTokenSettings = Nothing, Optional allowLowPriorityNode As Nullable(Of Boolean) = Nothing)

参数

id
String

唯一标识作业中的作业管理器任务的字符串。

commandLine
String

作业管理器任务的命令行。

displayName
String

作业管理器任务的显示名称。

containerSettings
TaskContainerSettings

运行作业管理器任务的容器的设置。

resourceFiles
IList<ResourceFile>

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

outputFiles
IList<OutputFile>

运行命令行后 Batch 服务将从计算节点上传的文件列表。

environmentSettings
IList<EnvironmentSetting>

作业管理器任务的环境变量设置列表。

constraints
TaskConstraints

适用于作业管理器任务的约束。

requiredSlots
Nullable<Int32>

任务运行所需的计划槽数。

killJobOnCompletion
Nullable<Boolean>

完成作业管理器任务是否表示完成整个作业。

userIdentity
UserIdentity

运行作业管理器任务时所依据的用户标识。

runExclusive
Nullable<Boolean>

作业管理器任务是否需要独占使用运行它的计算节点。

applicationPackageReferences
IList<ApplicationPackageReference>

Batch 服务在运行命令行之前将部署到计算节点的应用程序包列表。

authenticationTokenSettings
AuthenticationTokenSettings

任务可用于执行 Batch 服务操作的身份验证令牌的设置。

allowLowPriorityNode
Nullable<Boolean>

作业管理器任务是否可以在现成/低优先级计算节点上运行。

适用于