共用方式為


SpatialIndexDefinition<T>.Path Method

Definition

Overloads

Path(String)

Adds a path to the current SpatialPath definition.

Path(String, SpatialType[])

Add a path to the current SpatialPath definition with a particular set of SpatialTypes.

Path(String)

Source:
SpatialIndexDefinition.cs

Adds a path to the current SpatialPath definition.

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

Parameters

path
String

Property path for the current definition. Example: /property

Returns

An instance of the current SpatialIndexDefinition<T>.

Applies to

Path(String, SpatialType[])

Source:
SpatialIndexDefinition.cs

Add a path to the current SpatialPath definition with a particular set of SpatialTypes.

public Microsoft.Azure.Cosmos.Fluent.SpatialIndexDefinition<T> Path (string path, params Microsoft.Azure.Cosmos.SpatialType[] spatialTypes);
member this.Path : string * Microsoft.Azure.Cosmos.SpatialType[] -> Microsoft.Azure.Cosmos.Fluent.SpatialIndexDefinition<'T>
Public Function Path (path As String, ParamArray spatialTypes As SpatialType()) As SpatialIndexDefinition(Of T)

Parameters

path
String

Property path for the current definition. Example: /property

spatialTypes
SpatialType[]

Set of SpatialType to apply to the path.

Returns

An instance of the current SpatialIndexDefinition<T>.

Applies to