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