Table of Contents

Method SetName

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

SetName(string)

Sets the name of the index.

public IndexOptionsBuilder SetName(string value)

Parameters

value string

The name of the index.

Returns

IndexOptionsBuilder

The builder (so method calls can be chained).