Method RenameAsync
RenameAsync(TFileId, string, CancellationToken)
Renames a GridFS file.
public Task RenameAsync(TFileId id, string newFilename, CancellationToken cancellationToken = default)
Parameters
id
TFileIdThe file id.
newFilename
stringThe new filename.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A Task.