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

CompositeIndexDefinition<T>.Path 方法

定义

重载

Path(String)

将路径添加到当前 CompositePath 定义。

Path(String, CompositePathSortOrder)

将路径添加到具有特定 CompositePathSortOrder的当前CompositePath定义。

Path(String)

将路径添加到当前 CompositePath 定义。

public Azure.Cosmos.Fluent.CompositeIndexDefinition<T> Path (string path);
member this.Path : string -> Azure.Cosmos.Fluent.CompositeIndexDefinition<'T>
Public Function Path (path As String) As CompositeIndexDefinition(Of T)

参数

path
String

当前定义的属性路径。 示例:/property

返回

CompositeIndexDefinition<T> 的一个实例。

适用于

Path(String, CompositePathSortOrder)

将路径添加到具有特定 CompositePathSortOrder的当前CompositePath定义。

public Azure.Cosmos.Fluent.CompositeIndexDefinition<T> Path (string path, Azure.Cosmos.CompositePathSortOrder sortOrder);
member this.Path : string * Azure.Cosmos.CompositePathSortOrder -> Azure.Cosmos.Fluent.CompositeIndexDefinition<'T>
Public Function Path (path As String, sortOrder As CompositePathSortOrder) As CompositeIndexDefinition(Of T)

参数

path
String

当前定义的属性路径。 示例:/property

sortOrder
CompositePathSortOrder

CompositePathSortOrder 以应用于路径。

返回

CompositeIndexDefinition<T> 的一个实例。

适用于