Table of Contents

Class GridFSUploadStream<TFileId>

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

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

public abstract class GridFSUploadStream<TFileId> : Stream, IAsyncDisposable, IDisposable

Type Parameters

TFileId

The type of the file identifier.

Inheritance
GridFSUploadStream<TFileId>
Implements
Inherited Members

Properties

Id

Gets the id of the file being added to GridFS.

Methods

Abort(CancellationToken)

Aborts an upload operation.

AbortAsync(CancellationToken)

Aborts an upload operation.

Close(CancellationToken)

Closes the Stream and completes the upload operation.

CloseAsync(CancellationToken)

Closes the Stream and completes the upload operation.