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

ApplicationPackageReference.Version 属性

定义

获取或设置要部署的应用程序的版本。 如果省略,则部署默认版本。

[Newtonsoft.Json.JsonProperty(PropertyName="version")]
public string Version { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="version")>]
member this.Version : string with get, set
Public Property Version As String

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

注解

如果在池中省略了此值,并且未为此应用程序指定默认版本,则请求将失败,错误代码 InvalidApplicationPackageReferences 和 HTTP 状态代码 409。 如果在 Task 上省略此项,并且没有为此应用程序指定默认版本,则任务将失败并出现预处理错误。

适用于