Table of Contents

Method SetDropDups

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

SetDropDups(bool)

Sets whether duplicates should be dropped.

public IndexOptionsBuilder SetDropDups(bool value)

Parameters

value bool

Whether duplicates should be dropped.

Returns

IndexOptionsBuilder

The builder (so method calls can be chained).