Table of Contents

Method SetDropDups

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

SetDropDups(bool)

Sets whether duplicates should be dropped.

public IndexOptionsBuilder<TDocument> SetDropDups(bool value)

Parameters

value bool

Whether duplicates should be dropped.

Returns

IndexOptionsBuilder<TDocument>

The builder (so method calls can be chained).