Mime4.net Home | Community Edition | Order | Usage examples | Feedback
MimeMessage ClassMIME4NET Class Library Documentation
Represents a MIME message. The following code parses a stream into a Message object.
Message msg = new Message(new FileStream("mime.msg"));
Inheritance Hierarchy

System Object
  NI.Email.Mime.Message Entity
    NI.Email.Mime.Message MimeMessage

Namespace: NI.Email.Mime.Message
Assembly: NI.Email.Mime (in NI.Email.Mime.dll) Version: 1.8.5168.22709
Syntax

public class MimeMessage : Entity, 
	IBody

The MimeMessage type exposes the following members.

Constructors

  NameDescription
Public methodMimeMessage 
Creates a new empty Message.
Public methodMimeMessage(Stream)
Initializes a new instance of the MimeMessage class
Public methodMimeMessage(Stream, Boolean)
Parses the specified MIME message stream into a Message instance.
Top
Methods

  NameDescription
Protected methodEnsureBodyCharset (Inherited from Entity.)
Protected methodEnsureBodyWriteCharset (Inherited from Entity.)
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 methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetTextBodyContent 
Return first text body content.
Public methodGetTextBodyContent(String)
Returns first matched body content with specified body part.
Protected methodGetTextBodyPart
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodIsMimeType
Determines if the MIME type of this Entity matches the given one. MIME types are case-insensitive.
(Inherited from Entity.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString (Overrides Object ToString .)
Public methodWriteTo (Overrides Entity WriteTo(Stream).)
Top
Properties

  NameDescription
Public propertyBody
Gets the body of this entity.
(Inherited from Entity.)
Public propertyCharset
Determines the MIME character set encoding of this Entity.
(Inherited from Entity.)
Public propertyContentTransferEncoding
Determines the transfer encoding of this Entity.
(Inherited from Entity.)
Public propertyCurrentEncoding (Inherited from Entity.)
Public propertyHeader
Gets the entity header.
(Inherited from Entity.)
Public propertyIsMultipart
Determines if the MIME type of this Entity is multipart/*. Since multipart-entities must have a boundary parameter in the Content-Type field this method returns false if no boundary exists.
(Inherited from Entity.)
Public propertyMimeType
Determines the MIME type of this Entity. The MIME type is derived by looking at the parent's Content-Type field if no Content-Type field is set for this Entity.
(Inherited from Entity.)
Public propertyParent
Gets the parent entity of this entity. Returns null if this is the root entity.
(Inherited from Entity.)
Public propertySubject
Gets the Subject field.
Public propertyUseTempFileStorage
Top
See Also