Method RenameCollectionAsync
RenameCollectionAsync(string, string, RenameCollectionOptions, CancellationToken)
Renames the collection.
Task RenameCollectionAsync(string oldName, string newName, RenameCollectionOptions options = null, CancellationToken cancellationToken = default)
Parameters
oldNamestringThe old name.
newNamestringThe new name.
optionsRenameCollectionOptionsThe options.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task
A task.
RenameCollectionAsync(IClientSessionHandle, string, string, RenameCollectionOptions, CancellationToken)
Renames the collection.
Task RenameCollectionAsync(IClientSessionHandle session, string oldName, string newName, RenameCollectionOptions options = null, CancellationToken cancellationToken = default)
Parameters
sessionIClientSessionHandleThe session.
oldNamestringThe old name.
newNamestringThe new name.
optionsRenameCollectionOptionsThe options.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task
A task.