IndexingPolicyDefinition<T>.WithSpatialIndex Method

Definition

Defines a Microsoft.Azure.Cosmos.SpatialIndex in the current Container's definition.

public Microsoft.Azure.Cosmos.Fluent.SpatialIndexDefinition<Microsoft.Azure.Cosmos.Fluent.IndexingPolicyDefinition<T>> WithSpatialIndex ();
member this.WithSpatialIndex : unit -> Microsoft.Azure.Cosmos.Fluent.SpatialIndexDefinition<Microsoft.Azure.Cosmos.Fluent.IndexingPolicyDefinition<'T>>
Public Function WithSpatialIndex () As SpatialIndexDefinition(Of IndexingPolicyDefinition(Of T))

Returns

SpatialIndexDefinition<IndexingPolicyDefinition<T>>

An instance of SpatialIndexDefinition<T>.

Applies to