GridFSUploadStream Class |
Namespace: MongoDB.Driver.GridFS
The GridFSUploadStream type exposes the following members.
Name | Description | |
---|---|---|
![]() | Abort |
Aborts an upload operation.
|
![]() | AbortAsync |
Aborts an upload operation.
|
![]() | BeginRead | Begins an asynchronous read operation. (Consider using WriteAsync(Byte[] , Int32, Int32) instead; see the Remarks section.) (Inherited from DelegatingStream.) |
![]() | Close() | Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream. Instead of calling this method, ensure that the stream is properly disposed. (Inherited from DelegatingStream.) |
![]() | Close(CancellationToken) |
Closes the Stream and completes the upload operation.
|
![]() | CloseAsync |
Closes the Stream and completes the upload operation.
|
![]() | WaitHandle object. (Inherited from DelegatingStream.) | |
![]() | FlushAsync() | Asynchronously clears all buffers for this stream and causes any buffered data to be written to the underlying device. (Inherited from Object.) |
![]() | Stream.) | |
![]() | WriteAsync(Byte[], Int32, Int32, CancellationToken) | Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests. (Inherited from DelegatingStream.) |
![]() | WriteByte | Writes a byte to the current position in the stream and advances the position within the stream by one byte. (Inherited from DelegatingStream.) |
Name | Description | |
---|---|---|
![]() | ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) |
![]() | ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) |
![]() | ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) |
Name | Description | |
---|---|---|
![]() | CanRead | When overridden in a derived class, gets a value indicating whether the current stream supports reading. (Inherited from DelegatingStream.) |
![]() | CanSeek | When overridden in a derived class, gets a value indicating whether the current stream supports seeking. (Inherited from DelegatingStream.) |
![]() | CanTimeout | Gets a value that determines whether the current stream can time out. (Inherited from DelegatingStream.) |
![]() | CanWrite | When overridden in a derived class, gets a value indicating whether the current stream supports writing. (Inherited from DelegatingStream.) |
![]() | Id |
Gets the id of the file being added to GridFS.
|
![]() | Length | When overridden in a derived class, gets the length in bytes of the stream. (Inherited from DelegatingStream.) |
![]() | Position | When overridden in a derived class, gets or sets the position within the current stream. (Inherited from DelegatingStream.) |
![]() | ReadTimeout | Gets or sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out. (Inherited from DelegatingStream.) |
![]() | WriteTimeout | Gets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out. (Inherited from DelegatingStream.) |
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant