Table of Contents

Method Find

Namespace
MongoDB.Driver.GridFS
Assembly
MongoDB.Driver.dll

Find(FilterDefinition<GridFSFileInfo<TFileId>>, GridFSFindOptions<TFileId>, CancellationToken)

Finds matching entries from the files collection.

public 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 CancellationToken

The cancellation token.

Returns

IAsyncCursor<GridFSFileInfo<TFileId>>

A cursor of files collection documents.