Method Rename

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver.GridFS

Assembly

MongoDB.Driver.dll

Rename(BsonValue, string, CancellationToken)

Renames a GridFS file.

public void Rename(BsonValue id, string newFilename, CancellationToken cancellationToken = default)

Parameters

id BsonValue

The file id.

newFilename string

The new filename.

cancellationToken CancellationToken

The cancellation token.