IMongoIndexManager<TDocument> Interface |
An interface representing methods used to create, delete and modify indexes.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
Syntaxpublic interface IMongoIndexManager<TDocument>
Public Interface IMongoIndexManager(Of TDocument)
type IMongoIndexManager<'TDocument> = interface end
Type Parameters
- TDocument
- The type of the document.
The IMongoIndexManager< TDocument> type exposes the following members.
Properties
Methods
| Name | Description |
---|
 | CreateMany(IEnumerable<CreateIndexModel<TDocument>>, CancellationToken) |
Creates multiple indexes.
|
 | CreateMany(IClientSessionHandle, IEnumerable<CreateIndexModel<TDocument>>, CancellationToken) |
Creates multiple indexes.
|
 | CreateManyAsync(IEnumerable<CreateIndexModel<TDocument>>, CancellationToken) |
Creates multiple indexes.
|
 | CreateManyAsync(IClientSessionHandle, IEnumerable<CreateIndexModel<TDocument>>, CancellationToken) |
Creates multiple indexes.
|
 | CreateOne(IndexKeysDefinition<TDocument>, CreateIndexOptions, CancellationToken) |
Creates an index.
|
 | CreateOne(IClientSessionHandle, IndexKeysDefinition<TDocument>, CreateIndexOptions, CancellationToken) |
Creates an index.
|
 | CreateOneAsync(IndexKeysDefinition<TDocument>, CreateIndexOptions, CancellationToken) |
Creates an index.
|
 | CreateOneAsync(IClientSessionHandle, IndexKeysDefinition<TDocument>, CreateIndexOptions, CancellationToken) |
Creates an index.
|
 | DropAll(CancellationToken) |
Drops all the indexes.
|
 | DropAll(IClientSessionHandle, CancellationToken) |
Drops all the indexes.
|
 | DropAllAsync(CancellationToken) |
Drops all the indexes.
|
 | DropAllAsync(IClientSessionHandle, CancellationToken) |
Drops all the indexes.
|
 | DropOne(String, CancellationToken) |
Drops an index by its name.
|
 | DropOne(IClientSessionHandle, String, CancellationToken) |
Drops an index by its name.
|
 | DropOneAsync(String, CancellationToken) |
Drops an index by its name.
|
 | DropOneAsync(IClientSessionHandle, String, CancellationToken) |
Drops an index by its name.
|
 | List(CancellationToken) |
Lists the indexes.
|
 | List(IClientSessionHandle, CancellationToken) |
Lists the indexes.
|
 | ListAsync(CancellationToken) |
Lists the indexes.
|
 | ListAsync(IClientSessionHandle, CancellationToken) |
Lists the indexes.
|
Top
Remarks
See Also