Method DropDatabaseAsync
DropDatabaseAsync(string, CancellationToken)
Drops the database with the specified name.
public Task DropDatabaseAsync(string name, CancellationToken cancellationToken = default)
Parameters
name
stringThe name of the database to drop.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A task.
DropDatabaseAsync(IClientSessionHandle, string, CancellationToken)
Drops the database with the specified name.
public Task DropDatabaseAsync(IClientSessionHandle session, string name, CancellationToken cancellationToken = default)
Parameters
session
IClientSessionHandleThe session.
name
stringThe name of the database to drop.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A task.