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