Share via


IndexingPolicy Constructors

Definition

Overloads

IndexingPolicy()

Initializes a new instance of the IndexingPolicy class.

IndexingPolicy(Nullable<Boolean>, IndexingMode, IList<IncludedPath>, IList<ExcludedPath>, IList<IList<CompositePath>>, IList<SpatialSpec>)

Initializes a new instance of the IndexingPolicy class.

IndexingPolicy()

Initializes a new instance of the IndexingPolicy class.

public IndexingPolicy ();
Public Sub New ()

Applies to

IndexingPolicy(Nullable<Boolean>, IndexingMode, IList<IncludedPath>, IList<ExcludedPath>, IList<IList<CompositePath>>, IList<SpatialSpec>)

Initializes a new instance of the IndexingPolicy class.

public IndexingPolicy (bool? automatic = default, Microsoft.Azure.Management.CosmosDB.Fluent.Models.IndexingMode indexingMode = default, System.Collections.Generic.IList<Microsoft.Azure.Management.CosmosDB.Fluent.Models.IncludedPath> includedPaths = default, System.Collections.Generic.IList<Microsoft.Azure.Management.CosmosDB.Fluent.Models.ExcludedPath> excludedPaths = default, System.Collections.Generic.IList<System.Collections.Generic.IList<Microsoft.Azure.Management.CosmosDB.Fluent.Models.CompositePath>> compositeIndexes = default, System.Collections.Generic.IList<Microsoft.Azure.Management.CosmosDB.Fluent.Models.SpatialSpec> spatialIndexes = default);
new Microsoft.Azure.Management.CosmosDB.Fluent.Models.IndexingPolicy : Nullable<bool> * Microsoft.Azure.Management.CosmosDB.Fluent.Models.IndexingMode * System.Collections.Generic.IList<Microsoft.Azure.Management.CosmosDB.Fluent.Models.IncludedPath> * System.Collections.Generic.IList<Microsoft.Azure.Management.CosmosDB.Fluent.Models.ExcludedPath> * System.Collections.Generic.IList<System.Collections.Generic.IList<Microsoft.Azure.Management.CosmosDB.Fluent.Models.CompositePath>> * System.Collections.Generic.IList<Microsoft.Azure.Management.CosmosDB.Fluent.Models.SpatialSpec> -> Microsoft.Azure.Management.CosmosDB.Fluent.Models.IndexingPolicy
Public Sub New (Optional automatic As Nullable(Of Boolean) = Nothing, Optional indexingMode As IndexingMode = Nothing, Optional includedPaths As IList(Of IncludedPath) = Nothing, Optional excludedPaths As IList(Of ExcludedPath) = Nothing, Optional compositeIndexes As IList(Of IList(Of CompositePath)) = Nothing, Optional spatialIndexes As IList(Of SpatialSpec) = Nothing)

Parameters

automatic
Nullable<Boolean>

Indicates if the indexing policy is automatic

indexingMode
IndexingMode

Indicates the indexing mode. Possible values include: 'Consistent', 'Lazy', 'None'

includedPaths
IList<IncludedPath>

List of paths to include in the indexing

excludedPaths
IList<ExcludedPath>

List of paths to exclude from indexing

compositeIndexes
IList<IList<CompositePath>>

List of composite path list

spatialIndexes
IList<SpatialSpec>

List of spatial specifics

Applies to