C# Class anmar.SharpMimeTools.SharpMimeMessage

rfc 2045 entity
Inheritance: IEnumerable, IDisposable
Show file Open project: jeske/StepsDB-alpha Class Usage Examples

Private Properties

Property Type Description
SharpMimeMessage System
SharpMimeMessage System
parse bool

Public Methods

Method Description
Close ( ) : void

Clears the parts references contained in this instance and calls the Close method in those parts.

This method does not close the underling System.IO.Stream used to create this instance.

DumpBody ( System path ) : System.IO.FileInfo

Dumps the body of this entity into a file

DumpBody ( System path, System name ) : System.IO.FileInfo

Dumps the body of this entity into a file

DumpBody ( System path, bool generatename ) : System.IO.FileInfo

Dumps the body of this entity into a file

DumpBody ( System stream ) : bool

Dumps the body of this entity into a System.IO.Stream

GetEnumerator ( ) : System.Collections.IEnumerator

Returns an enumerator that can iterate through the parts of a multipart entity

GetPart ( int index ) : anmar.SharpMimeTools.SharpMimeMessage

Returns the requested part of a multipart entity

SharpMimeMessage ( System message ) : System

Initializes a new instance of the SharpMimeMessage class from a System.IO.Stream

this ( System name ) : System.String

Gets header fields for this entity

Field names is case insentitive

Private Methods

Method Description
SharpMimeMessage ( anmar message, long startpoint ) : System
SharpMimeMessage ( anmar message, long startpoint, long endpoint ) : System
parse ( ) : bool

Method Details

Close() public method

Clears the parts references contained in this instance and calls the Close method in those parts.
This method does not close the underling System.IO.Stream used to create this instance.
public Close ( ) : void
return void

DumpBody() public method

Dumps the body of this entity into a file
public DumpBody ( System path ) : System.IO.FileInfo
path System path of the destination folder
return System.IO.FileInfo

DumpBody() public method

Dumps the body of this entity into a file
public DumpBody ( System path, System name ) : System.IO.FileInfo
path System path of the destination folder
name System name of the file
return System.IO.FileInfo

DumpBody() public method

Dumps the body of this entity into a file
public DumpBody ( System path, bool generatename ) : System.IO.FileInfo
path System path of the destination folder
generatename bool true if the filename must be generated incase we can't find a valid one in the headers
return System.IO.FileInfo

DumpBody() public method

Dumps the body of this entity into a System.IO.Stream
public DumpBody ( System stream ) : bool
stream System where we want to write the body
return bool

GetEnumerator() public method

Returns an enumerator that can iterate through the parts of a multipart entity
public GetEnumerator ( ) : System.Collections.IEnumerator
return System.Collections.IEnumerator

GetPart() public method

Returns the requested part of a multipart entity
public GetPart ( int index ) : anmar.SharpMimeTools.SharpMimeMessage
index int index of the requested part
return anmar.SharpMimeTools.SharpMimeMessage

SharpMimeMessage() public method

Initializes a new instance of the SharpMimeMessage class from a System.IO.Stream
public SharpMimeMessage ( System message ) : System
message System to read the message from
return System

this() public method

Gets header fields for this entity
Field names is case insentitive
public this ( System name ) : System.String
name System field name
return System.String