Table of Contents

Method SetMetadata

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

SetMetadata(MongoGridFSFileInfo, BsonValue)

Sets the metadata for an existing GridFS file.

public void SetMetadata(MongoGridFSFileInfo fileInfo, BsonValue metadata)

Parameters

fileInfo MongoGridFSFileInfo

The GridFS file.

metadata BsonValue

The metadata.