Method SetAutoIndexId
SetAutoIndexId(bool)
Sets whether to automatically create an index on the _id element.
[Obsolete("AutoIndexId has been deprecated since server version 3.2.")]
public CollectionOptionsBuilder SetAutoIndexId(bool value)
Parameters
value
boolWhether to automatically create an index on the _id element.
Returns
- CollectionOptionsBuilder
The builder (so method calls can be chained).