IndexingPolicyDefinition<T>.WithSpatialIndex Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines a Azure.Cosmos.SpatialIndex in the current CosmosContainer's definition.
public Azure.Cosmos.Fluent.SpatialIndexDefinition<Azure.Cosmos.Fluent.IndexingPolicyDefinition<T>> WithSpatialIndex ();
member this.WithSpatialIndex : unit -> Azure.Cosmos.Fluent.SpatialIndexDefinition<Azure.Cosmos.Fluent.IndexingPolicyDefinition<'T>>
Public Function WithSpatialIndex () As SpatialIndexDefinition(Of IndexingPolicyDefinition(Of T))
Returns
An instance of SpatialIndexDefinition<T>.