Summary
Encapsulates a stream used for writing a file body into a multipart/form-data stream.
Remarks
The main purpose is to prevent the caller accidentally closing the request stream (which results in an exception
whose cause is pretty tricky to establish).
Instance methods
void | |
Closes the stream and prevents further writing to this stream. You may call this explicitly; you may call Stream.Dispose instead, or you could just leave it up to MultipartFormDataHelper to
close this stream automatically next time a new field or file is added, or when the helper itself is
closed. |
void | | Flushes the request stream. |
int | Read(byte[] buffer, int offset, int count) | Throws a NotSupportedException . |
long | Seek(long offset, SeekOrigin origin) |
void | |
void | Write(byte[] buffer, int offset, int count) | Writes file data to the request stream. |
Instance properties
bool | | Always false . |
bool | |
bool | | Always true . |
long | | Throws a NotSupportedException . |
long | |