Click or drag to resize
IMongoIndexManagerTDocument Interface
An interface representing methods used to create, delete and modify indexes.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.4.1
Syntax
public interface IMongoIndexManager<TDocument>

Type Parameters

TDocument
The type of the document.

The IMongoIndexManagerTDocument type exposes the following members.

Methods
  NameDescription
Public methodCreateMany
Creates multiple indexes.
Public methodCreateManyAsync
Creates multiple indexes.
Public methodCreateOne
Creates an index.
Public methodCreateOneAsync
Creates an index.
Public methodDropAll
Drops all the indexes.
Public methodDropAllAsync
Drops all the indexes.
Public methodDropOne
Drops an index by its name.
Public methodDropOneAsync
Drops an index by its name.
Public methodList
Lists the indexes.
Public methodListAsync
Lists the indexes.
Top
Properties
  NameDescription
Public propertyCollectionNamespace
Gets the namespace of the collection.
Public propertyDocumentSerializer
Gets the document serializer.
Public propertySettings
Gets the collection settings.
Top
Remarks
See Also