Method DropOneAsync
DropOneAsync(string, CancellationToken)
Drops an index by its name.
public abstract Task DropOneAsync(string name, CancellationToken cancellationToken = default)
Parameters
name
stringThe name.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A task.
DropOneAsync(string, DropIndexOptions, CancellationToken)
Drops an index by its name.
public virtual Task DropOneAsync(string name, DropIndexOptions options, CancellationToken cancellationToken = default)
Parameters
name
stringThe name.
options
DropIndexOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A task.
DropOneAsync(IClientSessionHandle, string, CancellationToken)
Drops an index by its name.
public virtual Task DropOneAsync(IClientSessionHandle session, string name, CancellationToken cancellationToken = default)
Parameters
session
IClientSessionHandleThe session.
name
stringThe name.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A task.
DropOneAsync(IClientSessionHandle, string, DropIndexOptions, CancellationToken)
Drops an index by its name.
public virtual Task DropOneAsync(IClientSessionHandle session, string name, DropIndexOptions options, CancellationToken cancellationToken)
Parameters
session
IClientSessionHandleThe session.
name
stringThe name.
options
DropIndexOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A task.