Table of Contents

Method IndexExistsByName

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

IndexExistsByName(string)

Tests whether an index exists.

public virtual bool IndexExistsByName(string indexName)

Parameters

indexName string

The name of the index.

Returns

bool

True if the index exists.