Table of Contents

Method DropOne

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

DropOne(string, CancellationToken)

Drops an index by its name.

public virtual void DropOne(string name, CancellationToken cancellationToken = default)

Parameters

name string

The name.

cancellationToken CancellationToken

The cancellation token.

DropOne(string, DropIndexOptions, CancellationToken)

Drops an index by its name.

public virtual void DropOne(string name, DropIndexOptions options, CancellationToken cancellationToken = default)

Parameters

name string

The name.

options DropIndexOptions

The options.

cancellationToken CancellationToken

The cancellation token.

DropOne(IClientSessionHandle, string, CancellationToken)

Drops an index by its name.

public virtual void DropOne(IClientSessionHandle session, string name, CancellationToken cancellationToken = default)

Parameters

session IClientSessionHandle

The session.

name string

The name.

cancellationToken CancellationToken

The cancellation token.

DropOne(IClientSessionHandle, string, DropIndexOptions, CancellationToken)

Drops an index by its name.

public virtual void DropOne(IClientSessionHandle session, string name, DropIndexOptions options, CancellationToken cancellationToken)

Parameters

session IClientSessionHandle

The session.

name string

The name.

options DropIndexOptions

The options.

cancellationToken CancellationToken

The cancellation token.