Method Rename
Rename(BsonValue, string, CancellationToken)
Renames a GridFS file.
public void Rename(BsonValue id, string newFilename, CancellationToken cancellationToken = default)
Parameters
id
BsonValueThe file id.
newFilename
stringThe new filename.
cancellationToken
CancellationTokenThe cancellation token.