Class GridFSUploadStream

| MongoDB CSharp Driver API Reference (original) (raw)

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

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.