Table of Contents

Method List

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

List(CancellationToken)

Lists the indexes.

IAsyncCursor<BsonDocument> List(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

IAsyncCursor<BsonDocument>

A cursor.

List(ListIndexesOptions, CancellationToken)

Lists the indexes.

IAsyncCursor<BsonDocument> List(ListIndexesOptions options, CancellationToken cancellationToken = default)

Parameters

options ListIndexesOptions

The options.

cancellationToken CancellationToken

The cancellation token.

Returns

IAsyncCursor<BsonDocument>

A cursor.

List(IClientSessionHandle, CancellationToken)

Lists the indexes.

IAsyncCursor<BsonDocument> List(IClientSessionHandle session, CancellationToken cancellationToken = default)

Parameters

session IClientSessionHandle

The session.

cancellationToken CancellationToken

The cancellation token.

Returns

IAsyncCursor<BsonDocument>

A cursor.

List(IClientSessionHandle, ListIndexesOptions, CancellationToken)

Lists the indexes.

IAsyncCursor<BsonDocument> List(IClientSessionHandle session, ListIndexesOptions options = null, CancellationToken cancellationToken = default)

Parameters

session IClientSessionHandle

The session.

options ListIndexesOptions

The options.

cancellationToken CancellationToken

The cancellation token.

Returns

IAsyncCursor<BsonDocument>

A cursor.