共用方式為


IndexingPolicyDefinition<T>.WithSpatialIndex Method

Definition

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>.

Applies to