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