Table of Contents

Method SetAutoIndexId

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

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 bool

Whether to automatically create an index on the _id element.

Returns

CollectionOptionsBuilder

The builder (so method calls can be chained).