Method RenameCollectionAsync
RenameCollectionAsync(string, string, RenameCollectionOptions, CancellationToken)
Renames the collection.
Task RenameCollectionAsync(string oldName, string newName, RenameCollectionOptions options = null, CancellationToken cancellationToken = default)
Parameters
oldName
stringThe old name.
newName
stringThe new name.
options
RenameCollection Options The options.
cancellationToken
CancellationToken The 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
session
IClientSession Handle The session.
oldName
stringThe old name.
newName
stringThe new name.
options
RenameCollection Options The options.
cancellationToken
CancellationToken The cancellation token.
Returns
- Task
A task.