Method RenameCollection
RenameCollection(string, string, RenameCollectionOptions, CancellationToken)
Renames the collection.
public virtual void RenameCollection(string oldName, string newName, RenameCollectionOptions options = null, CancellationToken cancellationToken = default)
Parameters
oldName
stringThe old name.
newName
stringThe new name.
options
RenameCollectionOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
RenameCollection(IClientSessionHandle, string, string, RenameCollectionOptions, CancellationToken)
Renames the collection.
public virtual void RenameCollection(IClientSessionHandle session, string oldName, string newName, RenameCollectionOptions options = null, CancellationToken cancellationToken = default)
Parameters
session
IClientSessionHandleThe session.
oldName
stringThe old name.
newName
stringThe new name.
options
RenameCollectionOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.