Method Find
Find(FilterDefinition<GridFSFileInfo<TFileId>>, GridFSFindOptions<TFileId>, CancellationToken)
Finds matching entries from the files collection.
IAsyncCursor<GridFSFileInfo<TFileId>> Find(FilterDefinition<GridFSFileInfo<TFileId>> filter, GridFSFindOptions<TFileId> options = null, CancellationToken cancellationToken = default)
Parameters
filter
FilterDefinition<GridFSFileInfo<TFileId>>The filter.
options
GridFSFindOptions<TFileId>The options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- IAsyncCursor<GridFSFileInfo<TFileId>>
A cursor of files collection documents.