CollectionOptions Class |
Namespace: MongoDB.Driver.Builders
The CollectionOptions type exposes the following members.
Name | Description | |
---|---|---|
SetAutoIndexId |
Sets whether to automatically create an index on the _id element.
| |
SetCapped |
Sets whether the collection is capped.
| |
SetCollation |
Sets the collation.
| |
SetIndexOptionDefaults |
Sets the index options defaults.
| |
SetMaxDocuments |
Sets the max number of documents in a capped collection.
| |
SetMaxSize |
Sets the max size of a capped collection.
| |
SetStorageEngineOptions |
Sets the storage engine options.
| |
SetValidationAction |
Sets the validation action.
| |
SetValidationLevel |
Sets the validation level.
| |
SetValidator |
Sets the validator.
|