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

TaskConstraints.MaxWallClockTime 属性

定义

获取或设置任务可能运行的最长时间,从任务开始的时间开始度量。 如果任务未在时间限制内完成,Batch 服务将终止它。

[Newtonsoft.Json.JsonProperty(PropertyName="maxWallClockTime")]
public TimeSpan? MaxWallClockTime { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="maxWallClockTime")>]
member this.MaxWallClockTime : Nullable<TimeSpan> with get, set
Public Property MaxWallClockTime As Nullable(Of TimeSpan)

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

注解

如果未指定此项,则任务可以运行的时间没有时间限制。

适用于