你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MongoDBCollectionResource 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
MongoDBCollectionResource() |
初始化 MongoDBCollectionResource 类的新实例。 |
MongoDBCollectionResource(String, IDictionary<String,String>, IList<MongoIndex>) |
初始化 MongoDBCollectionResource 类的新实例。 |
MongoDBCollectionResource()
初始化 MongoDBCollectionResource 类的新实例。
public MongoDBCollectionResource ();
Public Sub New ()
适用于
MongoDBCollectionResource(String, IDictionary<String,String>, IList<MongoIndex>)
初始化 MongoDBCollectionResource 类的新实例。
public MongoDBCollectionResource (string id, System.Collections.Generic.IDictionary<string,string> shardKey = default, System.Collections.Generic.IList<Microsoft.Azure.Management.CosmosDB.Fluent.Models.MongoIndex> indexes = default);
new Microsoft.Azure.Management.CosmosDB.Fluent.Models.MongoDBCollectionResource : string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IList<Microsoft.Azure.Management.CosmosDB.Fluent.Models.MongoIndex> -> Microsoft.Azure.Management.CosmosDB.Fluent.Models.MongoDBCollectionResource
Public Sub New (id As String, Optional shardKey As IDictionary(Of String, String) = Nothing, Optional indexes As IList(Of MongoIndex) = Nothing)
参数
- id
- String
Cosmos DB MongoDB 集合的名称
- shardKey
- IDictionary<String,String>
要应用于请求的分片键的键值对。
- indexes
- IList<MongoIndex>
索引键列表