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 static IndexOptionsBuilder SetSparse(bool value)

Parameters

value bool

Whether the index is a sparse index.

Returns

IndexOptionsBuilder

The builder (so method calls can be chained).