Table of Contents

Class GridFSDownloadStream<TFileId>

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

Represents a Stream used by the application to read data from a GridFS file.

public abstract class GridFSDownloadStream<TFileId> : Stream, IDisposable

Type Parameters

TFileId

The type of the file identifier.

Inheritance
GridFSDownloadStream<TFileId>
Implements
Inherited Members

Properties

FileInfo

Gets the files collection document.

public abstract GridFSFileInfo<TFileId> FileInfo { get; }

Property Value

GridFSFileInfo<TFileId>

The files collection document.

Methods

Close(CancellationToken)

Closes the GridFS stream.

public abstract void Close(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

The cancellation token.

CloseAsync(CancellationToken)

Closes the GridFS stream.

public abstract Task CloseAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

Task

A Task.