Class MongoDBCollectionResource
- Assembly
- Microsoft.Azure.Management.CosmosDB.Fluent.dll
Cosmos DB MongoDB collection resource object
public class MongoDBCollectionResource
- Inheritance
-
MongoDBCollectionResource
- Inherited Members
Constructors
MongoDBCollectionResource()
Initializes a new instance of the MongoDBCollectionResource class.
public MongoDBCollectionResource()
MongoDBCollectionResource(string, IDictionary<string, string>, IList<MongoIndex>)
Initializes a new instance of the MongoDBCollectionResource class.
public MongoDBCollectionResource(string id, IDictionary<string, string> shardKey = null, IList<MongoIndex> indexes = null)
Parameters
id
stringName of the Cosmos DB MongoDB collection
shardKey
IDictionary<string, string>A key-value pair of shard keys to be applied for the request.
indexes
IList<MongoIndex>List of index keys
Properties
Id
Gets or sets name of the Cosmos DB MongoDB collection
public string Id { get; set; }
Property Value
Indexes
Gets or sets list of index keys
public IList<MongoIndex> Indexes { get; set; }
Property Value
ShardKey
Gets or sets a key-value pair of shard keys to be applied for the request.
public IDictionary<string, string> ShardKey { get; set; }
Property Value
Methods
Validate()
Validate the object.
public virtual void Validate()
Exceptions
- Microsoft.Rest.ValidationException
Thrown if validation fails