Table of Contents

Method SetSparse

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

SetSparse(bool)

Sets whether the index is a sparse index.

public IndexOptionsBuilder<TDocument> SetSparse(bool value)

Parameters

value bool

Whether the index is a sparse index.

Returns

IndexOptionsBuilder<TDocument>

The builder (so method calls can be chained).