Method OpenDownloadStreamByName
OpenDownloadStreamByName(string, GridFSDownloadByNameOptions, CancellationToken)
Opens a Stream that can be used by the application to read data from a GridFS file.
public GridFSDownloadStream<TFileId> OpenDownloadStreamByName(string filename, GridFSDownloadByNameOptions options = null, CancellationToken cancellationToken = default)
Parameters
filename
stringThe filename.
options
GridFSDownloadByNameOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- GridFSDownloadStream<TFileId>
A Stream.