Method ListAsync
ListAsync(CancellationToken)
Lists the indexes.
Parameters
cancellationToken
CancellationToken The cancellation token.
Returns
- Task<IAsync
Cursor <BsonDocument >> A Task whose result is a cursor.
ListAsync(ListIndexesOptions, CancellationToken)
Lists the indexes.
Task<IAsyncCursor<BsonDocument>> ListAsync(ListIndexesOptions options, CancellationToken cancellationToken = default)
Parameters
options
ListIndexes Options The options.
cancellationToken
CancellationToken The cancellation token.
Returns
- Task<IAsync
Cursor <BsonDocument >> A Task whose result is a cursor.
ListAsync(IClientSessionHandle, CancellationToken)
Lists the indexes.
Task<IAsyncCursor<BsonDocument>> ListAsync(IClientSessionHandle session, CancellationToken cancellationToken = default)
Parameters
session
IClientSession Handle The session.
cancellationToken
CancellationToken The cancellation token.
Returns
- Task<IAsync
Cursor <BsonDocument >> A Task whose result is a cursor.
ListAsync(IClientSessionHandle, ListIndexesOptions, CancellationToken)
Lists the indexes.
Task<IAsyncCursor<BsonDocument>> ListAsync(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
- Task<IAsync
Cursor <BsonDocument >> A Task whose result is a cursor.