Method DropOneAsync
DropOneAsync(string, CancellationToken)
Drops an index by its name.
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.
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.
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.
Task DropOneAsync(IClientSessionHandle session, string name, DropIndexOptions options, CancellationToken cancellationToken = default)
Parameters
session
IClientSessionHandleThe session.
name
stringThe name.
options
DropIndexOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A task.