Method DropCollectionAsync
DropCollectionAsync(string, CancellationToken)
Drops the collection with the specified name.
public abstract Task DropCollectionAsync(string name, CancellationToken cancellationToken = default)
Parameters
name
stringThe name of the collection to drop.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A task.
DropCollectionAsync(IClientSessionHandle, string, CancellationToken)
Drops the collection with the specified name.
public virtual Task DropCollectionAsync(IClientSessionHandle session, string name, CancellationToken cancellationToken = default)
Parameters
session
IClientSessionHandleThe session.
name
stringThe name of the collection to drop.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A task.
DropCollectionAsync(string, DropCollectionOptions, CancellationToken)
Drops the collection with the specified name.
public virtual Task DropCollectionAsync(string name, DropCollectionOptions options, CancellationToken cancellationToken = default)
Parameters
name
stringThe name of the collection to drop.
options
DropCollectionOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A task.
DropCollectionAsync(IClientSessionHandle, string, DropCollectionOptions, CancellationToken)
Drops the collection with the specified name.
public virtual Task DropCollectionAsync(IClientSessionHandle session, string name, DropCollectionOptions options, CancellationToken cancellationToken = default)
Parameters
session
IClientSessionHandleThe session.
name
stringThe name of the collection to drop.
options
DropCollectionOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A task.