Method OpenUploadStream
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
OpenUploadStream(string, GridFSUploadOptions, CancellationToken)
Opens a Stream that can be used by the application to write data to a GridFS file.
public GridFSUploadStream OpenUploadStream(string filename, GridFSUploadOptions options = null, CancellationToken cancellationToken = default)
Parameters
filename
string
The filename.
options
GridFSUploadOptions
The options.
cancellationToken
CancellationToken
The cancellation token.
Returns
A Stream.