Click or drag to resize
MimeKit

MimeParser Class

A MIME message and entity parser.
Inheritance Hierarchy
SystemObject
  MimeKitMimeParser

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 3.0.0
Syntax
C#
public class MimeParser : IEnumerable<MimeMessage>, 
	IEnumerable

The MimeParser type exposes the following members.

Constructors
  NameDescription
Public methodMimeParser(Stream, Boolean)
Initialize a new instance of the MimeParser class.
Public methodMimeParser(ParserOptions, Stream, Boolean)
Initialize a new instance of the MimeParser class.
Public methodMimeParser(Stream, MimeFormat, Boolean)
Initialize a new instance of the MimeParser class.
Public methodMimeParser(ParserOptions, Stream, MimeFormat, Boolean)
Initialize a new instance of the MimeParser class.
Top
Properties
  NameDescription
Public propertyIsEndOfStream
Get a value indicating whether the parser has reached the end of the input stream.
Public propertyMboxMarker
Get the most recent mbox marker.
Public propertyMboxMarkerOffset
Get the most recent mbox marker offset.
Public propertyOptions
Get or set the parser options.
Public propertyPosition
Get the current position of the parser within the stream.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Enumerate the messages in the stream.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnMimeEntityBegin
Invoked when the parser begins parsing a MimeEntity.
Protected methodOnMimeEntityEnd
Invoked when the parser has completed parsing a MimeEntity.
Protected methodOnMimeMessageBegin
Invoked when the parser begins parsing a MimeMessage.
Protected methodOnMimeMessageEnd
Invoked when the parser has completed parsing a MimeMessage.
Public methodParseEntity
Parse an entity from the stream.
Public methodParseEntityAsync
Asynchronously parse an entity from the stream.
Public methodParseHeaders
Parse a list of headers from the stream.
Public methodParseHeadersAsync
Asynchronously parse a list of headers from the stream.
Public methodParseMessage
Parse a message from the stream.
Public methodParseMessageAsync
Asynchronously parse a message from the stream.
Public methodSetStream(Stream, MimeFormat)
Set the stream to parse.
Public methodSetStream(Stream, Boolean)
Set the stream to parse.
Public methodSetStream(ParserOptions, Stream, Boolean) Obsolete.
Set the stream to parse.
Public methodSetStream(Stream, MimeFormat, Boolean)
Set the stream to parse.
Public methodSetStream(ParserOptions, Stream, MimeFormat, Boolean) Obsolete.
Set the stream to parse.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventMimeEntityBegin
An event signifying the beginning of a new MimeEntity has been encountered.
Public eventMimeEntityEnd
An event signifying the end of a MimeEntity has been encountered.
Public eventMimeMessageBegin
An event signifying the beginning of a new MimeMessage has been encountered.
Public eventMimeMessageEnd
An event signifying the end of a MimeMessage has been encountered.
Top
Remarks
A MIME parser is used to parse MimeMessage and MimeEntity objects from arbitrary streams.
See Also