Method CloseAsync
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
CloseAsync(CancellationToken)
Closes the Stream and completes the upload operation.
public abstract Task CloseAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken
The cancellation token.
Returns
A Task.
Remarks
Any data remaining in the Stream is flushed to the server and the GridFS files collection document is written.