你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
IndexingPolicy 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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)
参数
- indexingMode
- String
指示索引模式。 可能的值包括:“consistent”、“lazy”、“none”
- includedPaths
- IList<IncludedPath>
要包含在索引中的路径列表
- excludedPaths
- IList<ExcludedPath>
要从索引中排除的路径列表
- compositeIndexes
- IList<IList<CompositePath>>
复合路径列表列表
- spatialIndexes
- IList<SpatialSpec>
空间细节列表