Table of Contents

Method DropAll

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

DropAll(DropIndexOptions, CancellationToken)

Drops all the indexes.

public virtual void DropAll(DropIndexOptions options, CancellationToken cancellationToken = default)

Parameters

options DropIndexOptions

The options.

cancellationToken CancellationToken

The cancellation token.

DropAll(CancellationToken)

Drops all the indexes.

public virtual void DropAll(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token.

DropAll(IClientSessionHandle, CancellationToken)

Drops all the indexes.

public virtual void DropAll(IClientSessionHandle session, CancellationToken cancellationToken = default)

Parameters

session IClientSessionHandle

The session.

cancellationToken CancellationToken

The cancellation token.

DropAll(IClientSessionHandle, DropIndexOptions, CancellationToken)

Drops all the indexes.

public virtual void DropAll(IClientSessionHandle session, DropIndexOptions options, CancellationToken cancellationToken = default)

Parameters

session IClientSessionHandle

The session.

options DropIndexOptions

The options.

cancellationToken CancellationToken

The cancellation token.