Click or drag to resize

GridFSBucketTFileIdFindAsync Method

Finds matching entries from the files collection.

Namespace:  MongoDB.Driver.GridFS
Assembly:  MongoDB.Driver.GridFS (in MongoDB.Driver.GridFS.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax
public Task<IAsyncCursor<GridFSFileInfo<TFileId>>> FindAsync(
	FilterDefinition<GridFSFileInfo<TFileId>> filter,
	GridFSFindOptions<TFileId> options = null,
	CancellationToken cancellationToken = default
)

Parameters

filter
Type: MongoDB.DriverFilterDefinitionGridFSFileInfoTFileId
The filter.
options (Optional)
Type: MongoDB.Driver.GridFSGridFSFindOptionsTFileId
The options.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: TaskIAsyncCursorGridFSFileInfoTFileId
A Task whose result is a cursor of files collection documents.

Implements

IGridFSBucketTFileIdFindAsync(FilterDefinitionGridFSFileInfoTFileId, GridFSFindOptionsTFileId, CancellationToken)
See Also