| CollectionOptions Methods | 
The CollectionOptions type exposes the following members.
 Methods
Methods| Name | Description | |
|---|---|---|
|   | SetAutoIndexId | Obsolete. 
            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.
             | 
 See Also
See Also