Table of Contents

Method FindOneById

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

FindOneById(BsonValue)

Finds a GridFS file.

public MongoGridFSFileInfo FindOneById(BsonValue id)

Parameters

id BsonValue

The GridFS file Id.

Returns

MongoGridFSFileInfo

The GridFS file.