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

JobConstraints 构造函数

定义

重载

JobConstraints()

初始化 JobConstraints 类的新实例。

JobConstraints(Nullable<TimeSpan>, Nullable<Int32>)

初始化 JobConstraints 类的新实例。

JobConstraints()

Source:
JobConstraints.cs

初始化 JobConstraints 类的新实例。

public JobConstraints ();
Public Sub New ()

适用于

JobConstraints(Nullable<TimeSpan>, Nullable<Int32>)

Source:
JobConstraints.cs

初始化 JobConstraints 类的新实例。

public JobConstraints (TimeSpan? maxWallClockTime = default, int? maxTaskRetryCount = default);
new Microsoft.Azure.Batch.Protocol.Models.JobConstraints : Nullable<TimeSpan> * Nullable<int> -> Microsoft.Azure.Batch.Protocol.Models.JobConstraints
Public Sub New (Optional maxWallClockTime As Nullable(Of TimeSpan) = Nothing, Optional maxTaskRetryCount As Nullable(Of Integer) = Nothing)

参数

maxWallClockTime
Nullable<TimeSpan>

作业可以运行的最大运行时间,从创建作业的时间开始计算。

maxTaskRetryCount
Nullable<Int32>

每个任务可以重试的最大次数。 如果任务退出代码不为零,Batch 服务会重试该任务。

适用于