Table of Contents

Method Close

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

Close(CancellationToken)

Closes the Stream and completes the upload operation.

public abstract void Close(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

The cancellation token.

Remarks

Any data remaining in the Stream is flushed to the server and the GridFS files collection document is written.