Table of Contents

Method ListAsync

Namespace
MongoDB.Driver.Search
Assembly
MongoDB.Driver.dll

ListAsync(string, AggregateOptions, CancellationToken)

Lists the search indexes.

Task<IAsyncCursor<BsonDocument>> ListAsync(string name = null, AggregateOptions aggregateOptions = null, CancellationToken cancellationToken = default)

Parameters

name string

Name of the index.

aggregateOptions AggregateOptions

The aggregate options.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<IAsyncCursor<BsonDocument>>

A Task whose result is a cursor.