Click or drag to resize
IGridFSBucket.FindAsync Method (FilterDefinition<GridFSFileInfo>, GridFSFindOptions, CancellationToken)
Finds matching entries from the files collection.

Namespace: MongoDB.Driver.GridFS
Assembly: MongoDB.Driver.GridFS (in MongoDB.Driver.GridFS.dll) Version: 2.4.1
Syntax
Task<IAsyncCursor<GridFSFileInfo>> FindAsync(
	FilterDefinition<GridFSFileInfo> filter,
	GridFSFindOptions options = null,
	CancellationToken cancellationToken = null
)

Parameters

filter
Type: MongoDB.Driver.FilterDefinition<GridFSFileInfo>
The filter.
options (Optional)
Type: MongoDB.Driver.GridFS.GridFSFindOptions
The options.
cancellationToken (Optional)
Type: Task<IAsyncCursor<GridFSFileInfo>>
A Task whose result is a cursor of files collection documents.
See Also

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant