Method DropCollectionAsync
DropCollectionAsync(string, CancellationToken)
Drops the collection with the specified name.
Task DropCollectionAsync(string name, CancellationToken cancellationToken = default)Parameters
- namestring
- The name of the collection to drop. 
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- Task
- A task. 
DropCollectionAsync(string, DropCollectionOptions, CancellationToken)
Drops the collection with the specified name.
Task DropCollectionAsync(string name, DropCollectionOptions options, CancellationToken cancellationToken = default)Parameters
- namestring
- The name of the collection to drop. 
- optionsDropCollectionOptions
- The options. 
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- Task
- A task. 
DropCollectionAsync(IClientSessionHandle, string, CancellationToken)
Drops the collection with the specified name.
Task DropCollectionAsync(IClientSessionHandle session, string name, CancellationToken cancellationToken = default)Parameters
- sessionIClientSessionHandle
- The session. 
- namestring
- The name of the collection to drop. 
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- Task
- A task. 
DropCollectionAsync(IClientSessionHandle, string, DropCollectionOptions, CancellationToken)
Drops the collection with the specified name.
Task DropCollectionAsync(IClientSessionHandle session, string name, DropCollectionOptions options, CancellationToken cancellationToken = default)Parameters
- sessionIClientSessionHandle
- The session. 
- namestring
- The name of the collection to drop. 
- optionsDropCollectionOptions
- The options. 
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- Task
- A task.