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

CompositePath 类

定义

复合路径的 DOM。 复合路径用于组合索引。 例如,如果要运行类似“SELECT * FROM c ORDER BY c.age, c.height”的查询,则需要将“/age”和“/height”作为组合路径添加到组合索引。

[System.Text.Json.Serialization.JsonConverter(typeof(Azure.Cosmos.TextJsonCompositePathConverter))]
public sealed class CompositePath
[<System.Text.Json.Serialization.JsonConverter(typeof(Azure.Cosmos.TextJsonCompositePathConverter))>]
type CompositePath = class
Public NotInheritable Class CompositePath
继承
CompositePath
属性

构造函数

CompositePath()

复合路径的 DOM。 复合路径用于组合索引。 例如,如果要运行类似“SELECT * FROM c ORDER BY c.age, c.height”的查询,则需要将“/age”和“/height”作为组合路径添加到组合索引。

属性

Order

获取或设置复合路径的排序顺序。 例如,如果要运行查询“SELECT * FROM c ORDER BY c.age asc, c.height desc”,则需要将“/age”的顺序设置为“ascending”,将“/height”的顺序设置为“descending”。

Path

获取或设置文档中用于复合索引的完整路径。 我们不支持路径中的通配符。

适用于