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

IWithShardKey<ParentT> 接口

定义

允许设置分片键的 mongo 集合定义的阶段。

public interface IWithShardKey<ParentT>
type IWithShardKey<'ParentT> = interface
Public Interface IWithShardKey(Of ParentT)

类型参数

ParentT

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

派生

方法

WithShardKey(String)

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

WithShardKey(String, String)

指定分片键。

WithShardKeys(IDictionary<String,String>)

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

适用于