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.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
Syntax
public Task<IAsyncCursor<GridFSFileInfo<TFileId>>> FindAsync(
	FilterDefinition<GridFSFileInfo<TFileId>> filter,
	GridFSFindOptions<TFileId> options = null,
	CancellationToken cancellationToken = null
)

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