Method ListAsync
ListAsync(string, AggregateOptions, CancellationToken)
Lists the search indexes.
Task<IAsyncCursor<BsonDocument>> ListAsync(string name = null, AggregateOptions aggregateOptions = null, CancellationToken cancellationToken = default)
Parameters
namestringName of the index.
aggregateOptionsAggregateOptionsThe aggregate options.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<IAsyncCursor<BsonDocument>>
A Task whose result is a cursor.