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