Method DropAllAsync
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
DropAllAsync(DropIndexOptions, CancellationToken)
Drops all the indexes.
public virtual Task DropAllAsync(DropIndexOptions options, CancellationToken cancellationToken)Parameters
options DropIndexOptions
The options.
cancellationToken CancellationToken
The cancellation token.
Returns
A task.
DropAllAsync(CancellationToken)
Drops all the indexes.
public abstract Task DropAllAsync(CancellationToken cancellationToken = default)Parameters
cancellationToken CancellationToken
The cancellation token.
Returns
A task.
DropAllAsync(IClientSessionHandle, CancellationToken)
Drops all the indexes.
public virtual Task DropAllAsync(IClientSessionHandle session, CancellationToken cancellationToken = default)Parameters
session IClientSessionHandle
The session.
cancellationToken CancellationToken
The cancellation token.
Returns
A task.
DropAllAsync(IClientSessionHandle, DropIndexOptions, CancellationToken)
Drops all the indexes.
public virtual Task DropAllAsync(IClientSessionHandle session, DropIndexOptions options, CancellationToken cancellationToken)Parameters
session IClientSessionHandle
The session.
options DropIndexOptions
The options.
cancellationToken CancellationToken
The cancellation token.
Returns
A task.