Method FindAsync
FindAsync(FilterDefinition<GridFSFileInfo>, GridFSFindOptions, CancellationToken)
Finds matching entries from the files collection.
public Task<IAsyncCursor<GridFSFileInfo>> FindAsync(FilterDefinition<GridFSFileInfo> filter, GridFSFindOptions options = null, CancellationToken cancellationToken = default)
Parameters
filter
FilterDefinition <GridFSFile >Info The filter.
options
GridFSFind Options The options.
cancellationToken
CancellationToken The cancellation token.
Returns
- Task<IAsync
Cursor <GridFSFile >>Info A Task whose result is a cursor of files collection documents.