Table of Contents

Method DropAllAsync

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

DropAllAsync(DropIndexOptions, CancellationToken)

Drops all the indexes.

Task DropAllAsync(DropIndexOptions options, CancellationToken cancellationToken = default)

Parameters

options DropIndexOptions

The options.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

A task.

DropAllAsync(CancellationToken)

Drops all the indexes.

Task DropAllAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

Task

A task.

DropAllAsync(IClientSessionHandle, CancellationToken)

Drops all the indexes.

Task DropAllAsync(IClientSessionHandle session, CancellationToken cancellationToken = default)

Parameters

session IClientSessionHandle

The session.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

A task.

DropAllAsync(IClientSessionHandle, DropIndexOptions, CancellationToken)

Drops all the indexes.

Task DropAllAsync(IClientSessionHandle session, DropIndexOptions options, CancellationToken cancellationToken = default)

Parameters

session IClientSessionHandle

The session.

options DropIndexOptions

The options.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

A task.