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

AutoPoolSpecification.KeepAlive 属性

定义

获取或设置自动池在其生存期到期后是否保持活动状态。

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

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

注解

如果为 false,则 Batch 服务在池生存期 (由 poolLifetimeOption 设置确定) 过期后将其删除;即作业或作业计划完成的时间。 如果为 true,则 Batch 服务不会自动删除池。 由用户决定删除使用此选项创建的自动池。

适用于