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

IDefinition<ParentT> 接口

定义

作为父定义的一部分的 mongo 集合定义的全部。

public interface IDefinition<ParentT> : Microsoft.Azure.Management.CosmosDB.Fluent.HasOptions.Definition.IWithOptions<Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Definition.IWithAttach<ParentT>>, Microsoft.Azure.Management.CosmosDB.Fluent.HasThroughputSettings.Definition.IWithThroughput<Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Definition.IWithAttach<ParentT>>, Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Definition.IBlank<ParentT>, Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Definition.IWithAttach<ParentT>, Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Definition.IWithIndex<ParentT>, Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Definition.IWithOptions<ParentT>, Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Definition.IWithShardKey<ParentT>, Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Definition.IWithThroughput<ParentT>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.ChildResource.Definition.IInDefinition<ParentT>
type IDefinition<'ParentT> = interface
    interface IBlank<'ParentT>
    interface IWithAttach<'ParentT>
    interface IInDefinition<'ParentT>
    interface IWithOptions<'ParentT>
    interface IWithOptions<IWithAttach<'ParentT>>
    interface IWithThroughput<'ParentT>
    interface IWithThroughput<IWithAttach<'ParentT>>
    interface IWithShardKey<'ParentT>
    interface IWithIndex<'ParentT>
Public Interface IDefinition(Of ParentT)
Implements IBlank(Of ParentT), IInDefinition(Of ParentT), IWithAttach(Of ParentT), IWithIndex(Of ParentT), IWithOptions(Of IWithAttach(Of ParentT)), IWithOptions(Of ParentT), IWithShardKey(Of ParentT), IWithThroughput(Of IWithAttach(Of ParentT)), IWithThroughput(Of ParentT)

类型参数

ParentT

附加此定义后要返回到的父定义的阶段。

实现

方法

Attach()

作为父定义的一部分的 mongo 集合定义的全部。

(继承自 IInDefinition<ParentT>)
WithIndex(MongoIndex)

指定 mongo 索引。

(继承自 IWithIndex<ParentT>)
WithIndex(MongoIndexKeys, MongoIndexOptions)

指定 mongo 索引。

(继承自 IWithIndex<ParentT>)
WithIndexes(IList<MongoIndex>)

将所有 mongo 索引追加到当前索引。

(继承自 IWithIndex<ParentT>)
WithOption(String, String)

指定选项。

(继承自 IWithOptions<ReturnT>)
WithOptionsAppend(IDictionary<String,String>)

将所有选项追加到当前选项。

(继承自 IWithOptions<ReturnT>)
WithShardKey(String)

指定具有默认分区类型“Hash”的分片键。

(继承自 IWithShardKey<ParentT>)
WithShardKey(String, String)

指定分片键。

(继承自 IWithShardKey<ParentT>)
WithShardKeys(IDictionary<String,String>)

将所有分片键追加到当前分片键。

(继承自 IWithShardKey<ParentT>)
WithThroughput(Int32)

指定吞吐量值。

(继承自 IWithThroughput<ReturnT>)

适用于