Method List
List(CancellationToken)
Lists the indexes.
Parameters
cancellationToken
CancellationToken The cancellation token.
Returns
- IAsync
Cursor <BsonDocument > A cursor.
List(ListIndexesOptions, CancellationToken)
Lists the indexes.
IAsyncCursor<BsonDocument> List(ListIndexesOptions options, CancellationToken cancellationToken = default)
Parameters
options
ListIndexes Options The options.
cancellationToken
CancellationToken The cancellation token.
Returns
- IAsync
Cursor <BsonDocument > A cursor.
List(IClientSessionHandle, CancellationToken)
Lists the indexes.
IAsyncCursor<BsonDocument> List(IClientSessionHandle session, CancellationToken cancellationToken = default)
Parameters
session
IClientSession Handle The session.
cancellationToken
CancellationToken The cancellation token.
Returns
- IAsync
Cursor <BsonDocument > A cursor.
List(IClientSessionHandle, ListIndexesOptions, CancellationToken)
Lists the indexes.
IAsyncCursor<BsonDocument> List(IClientSessionHandle session, ListIndexesOptions options = null, CancellationToken cancellationToken = default)
Parameters
session
IClientSession Handle The session.
options
ListIndexes Options The options.
cancellationToken
CancellationToken The cancellation token.
Returns
- IAsync
Cursor <BsonDocument > A cursor.