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

IWithIndex<ParentT>.WithIndex 方法

定义

重载

WithIndex(MongoIndex)

指定 mongo 索引。

WithIndex(MongoIndexKeys, MongoIndexOptions)

指定 mongo 索引。

WithIndex(MongoIndex)

指定 mongo 索引。

public Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Definition.IWithAttach<ParentT> WithIndex (Microsoft.Azure.Management.CosmosDB.Fluent.Models.MongoIndex index);
abstract member WithIndex : Microsoft.Azure.Management.CosmosDB.Fluent.Models.MongoIndex -> Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Definition.IWithAttach<'ParentT>
Public Function WithIndex (index As MongoIndex) As IWithAttach(Of ParentT)

参数

index
MongoIndex

特定的 mongo 索引。

返回

定义的下一阶段。

适用于

WithIndex(MongoIndexKeys, MongoIndexOptions)

指定 mongo 索引。

public Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Definition.IWithAttach<ParentT> WithIndex (Microsoft.Azure.Management.CosmosDB.Fluent.Models.MongoIndexKeys key, Microsoft.Azure.Management.CosmosDB.Fluent.Models.MongoIndexOptions option);
abstract member WithIndex : Microsoft.Azure.Management.CosmosDB.Fluent.Models.MongoIndexKeys * Microsoft.Azure.Management.CosmosDB.Fluent.Models.MongoIndexOptions -> Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Definition.IWithAttach<'ParentT>
Public Function WithIndex (key As MongoIndexKeys, option As MongoIndexOptions) As IWithAttach(Of ParentT)

参数

key
MongoIndexKeys

索引的键。

option
MongoIndexOptions

索引的 选项。

返回

定义的下一阶段。

适用于