Table of Contents

Class IndexInfo

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

Represents information about an index.

public class IndexInfo
Inheritance
IndexInfo
Inherited Members
Extension Methods

Constructors

IndexInfo(BsonDocument)

Creates a new instance of the IndexInfo class.

Properties

DroppedDups

Gets a value indicating whether dups were dropped when the index was created.

IsBackground

Gets a value indicating whether the index was created in the background.

IsHidden

Gets a value indicating whether the index is hidden.

IsSparse

Gets a value indicating whether the index is sparse.

IsUnique

Gets a value indicating whether the index is unique.

Key

Gets the key of the index.

Name

Gets the name of the index.

Namespace

Gets the namespace of the collection that the index is for.

RawDocument

Gets the raw BSON document containing the index information.

TimeToLive

Gets the time to live value (or TimeSpan.MaxValue if index doesn't have a time to live value).

Version

Gets the version of the index.