Table of Contents

Method RenameAsync

Namespace
MongoDB.Driver.GridFS
Assembly
MongoDB.Driver.GridFS.dll

RenameAsync(BsonValue, string, CancellationToken)

Renames a GridFS file.

public Task RenameAsync(BsonValue id, string newFilename, CancellationToken cancellationToken = default)

Parameters

id BsonValue

The file id.

newFilename string

The new filename.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

A Task.