Click or drag to resize
MongoGridFS.SetMetadata Method
Sets the metadata for an existing GridFS file.

Namespace: MongoDB.Driver.GridFS
Assembly: MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.2.0
Syntax
public void SetMetadata(
	MongoGridFSFileInfo fileInfo,
	BsonValue metadata
)

Parameters

fileInfo
Type: MongoDB.Driver.GridFS.MongoGridFSFileInfo
The GridFS file.
metadata
Type: MongoDB.Bson.BsonValue
The metadata.
See Also