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

ServiceResource.PlacementConstraints 属性

定义

获取或设置字符串形式的放置约束。 放置约束是节点属性中的布尔表达式,用于根据服务要求将服务限制到特定的节点。 例如,若要在 NodeType 为蓝色的节点上放置服务,请指定以下内容:“NodeColor == blue) ”。

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

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

适用于