C# Class Headless.PostFileStreamEntry

The PostFileStreamEntry class provides the information about a file to post with the specified Stream.
Inheritance: PostFileEntry, IDisposable
Show file Open project: roryprimrose/Headless

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

PostFileStreamEntry ( string name, string fileName, Stream data ) : System

Initializes a new instance of the PostFileStreamEntry class.

The fileName parameter should be the name of the file or the path to a file. The data stream is disposed when this instance is disposed.

ReadContent ( ) : Stream

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool /// true to release both managed and unmanaged resources; false to release only /// unmanaged resources. ///
return void

PostFileStreamEntry() public method

Initializes a new instance of the PostFileStreamEntry class.
The fileName parameter should be the name of the file or the path to a file. The data stream is disposed when this instance is disposed.
/// The parameter is null. ///
public PostFileStreamEntry ( string name, string fileName, Stream data ) : System
name string /// The name. ///
fileName string /// The file name. ///
data Stream /// The data. ///
return System

ReadContent() public method

public ReadContent ( ) : Stream
return Stream