Method DropCollection
DropCollection(string, CancellationToken)
Drops the collection with the specified name.
void DropCollection(string name, CancellationToken cancellationToken = default)
Parameters
name
stringThe name of the collection to drop.
cancellationToken
CancellationTokenThe cancellation token.
DropCollection(string, DropCollectionOptions, CancellationToken)
Drops the collection with the specified name.
void DropCollection(string name, DropCollectionOptions options, CancellationToken cancellationToken = default)
Parameters
name
stringThe name of the collection to drop.
options
DropCollectionOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
DropCollection(IClientSessionHandle, string, CancellationToken)
Drops the collection with the specified name.
void DropCollection(IClientSessionHandle session, string name, CancellationToken cancellationToken = default)
Parameters
session
IClientSessionHandleThe session.
name
stringThe name of the collection to drop.
cancellationToken
CancellationTokenThe cancellation token.
DropCollection(IClientSessionHandle, string, DropCollectionOptions, CancellationToken)
Drops the collection with the specified name.
void DropCollection(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.