IndexingPolicyDefinition<T>.WithAutomaticIndexing(Boolean) Method

Definition

Defines the Container's automatic indexing.

public Microsoft.Azure.Cosmos.Fluent.IndexingPolicyDefinition<T> WithAutomaticIndexing (bool enabled);
member this.WithAutomaticIndexing : bool -> Microsoft.Azure.Cosmos.Fluent.IndexingPolicyDefinition<'T>
Public Function WithAutomaticIndexing (enabled As Boolean) As IndexingPolicyDefinition(Of T)

Parameters

enabled
Boolean

Defines whether Automatic Indexing is enabled or not.

Returns

IndexingPolicyDefinition<T>

An instance of IndexingPolicyDefinition<T>.

Applies to