你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IndexingPolicy 构造函数

定义

重载

IndexingPolicy()

初始化 IndexingPolicy 类的新实例。

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

初始化 IndexingPolicy 类的新实例。

IndexingPolicy()

初始化 IndexingPolicy 类的新实例。

public IndexingPolicy();
Public Sub New ()

适用于

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

初始化 IndexingPolicy 类的新实例。

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

参数

automatic
Nullable<Boolean>

指示索引策略是否是自动的

indexingMode
String

指示索引模式。 可能的值包括:“consistent”、“lazy”、“none”

includedPaths
IList<IncludedPath>

要包含在索引中的路径列表

excludedPaths
IList<ExcludedPath>

要从索引中排除的路径列表

compositeIndexes
IList<IList<CompositePath>>

复合路径列表列表

spatialIndexes
IList<SpatialSpec>

空间细节列表

适用于