Table of Contents

Method SetName

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

SetName(string)

Sets the name of the index.

public IndexOptionsBuilder<TDocument> SetName(string value)

Parameters

value string

The name of the index.

Returns

IndexOptionsBuilder<TDocument>

The builder (so method calls can be chained).