Click or drag to resize

CollectionOptions Class

A builder for the options used when creating a collection.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.BuildersCollectionOptions

Namespace:  MongoDB.Driver.Builders
Assembly:  MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax
public static class CollectionOptions

The CollectionOptions type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberNull
Gets a null value with a type of IMongoCollectionOptions.
Top
Methods
  NameDescription
Public methodStatic memberSetAutoIndexId Obsolete.
Sets whether to automatically create an index on the _id element.
Public methodStatic memberSetCapped
Sets whether the collection is capped.
Public methodStatic memberSetCollation
Sets the collation.
Public methodStatic memberSetIndexOptionDefaults
Sets the index options defaults.
Public methodStatic memberSetMaxDocuments
Sets the max number of documents in a capped collection.
Public methodStatic memberSetMaxSize
Sets the max size of a capped collection.
Public methodStatic memberSetStorageEngineOptions
Sets the storage engine options.
Public methodStatic memberSetValidationAction
Sets the validation action.
Public methodStatic memberSetValidationLevel
Sets the validation level.
Public methodStatic memberSetValidator
Sets the validator.
Top
See Also