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

UniqueKey.Paths 属性

定义

获取或设置路径,其中一组路径对于 Azure Cosmos DB 服务中的每个文档必须是唯一的。

[Newtonsoft.Json.JsonProperty(PropertyName="paths")]
public System.Collections.ObjectModel.Collection<string> Paths { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="paths")>]
member this.Paths : System.Collections.ObjectModel.Collection<string> with get, set
Public Property Paths As Collection(Of String)

属性值

要对其强制实施唯一性的路径。 每个路径都是文档中唯一属性的根路径,例如“/name/first”。

属性
Newtonsoft.Json.JsonPropertyAttribute

示例

uniqueKey.Paths = new Collection<string> { “/name/first”, “/name/last” };

适用于