UploadStream Class

Specialized write-only stream used for submitting a chunk of a large upload to a FileSystem.

Inheritance Hierarchy

Syntax

public class UploadStream : System.IO.Stream, System.IDisposable

Constructors

Name Description
UploadStream

Initializes a new instance of the UploadStream class.

Properties

Name Description
BytesWritten
CanRead
CanSeek
CanWrite
Length
Position

Methods

Name Description
CommitAsync(System.Threading.CancellationToken cancellationToken)

Called when the chunk is complete. The BytesWritten property must be accurate after this returns.

Flush
IncrementBytesWritten(long count)

Adds the specified count to the value of the BytesWritten property.

Read(byte[] buffer, int offset, int count)
Seek(long offset, System.IO.SeekOrigin origin)
SetLength(long value)

Remarks

Implementers must call the IncrementBytesWritten(long count) method whenever data is written in any of the Write method overrides.