Represents a MIME message. The following code parses a stream into a
Message object.
Message msg = new Message(new FileStream("mime.msg"));
Inheritance Hierarchy
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
The MimeMessage type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| MimeMessage |
Creates a new empty Message.
| |
| MimeMessage(Stream) | Initializes a new instance of the MimeMessage class | |
| MimeMessage(Stream, Boolean) |
Parses the specified MIME message stream into a Message
instance.
|
Methods
| Name | Description | |
|---|---|---|
| EnsureBodyCharset | (Inherited from Entity.) | |
| EnsureBodyWriteCharset | (Inherited from Entity.) | |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetTextBodyContent |
Return first text body content.
| |
| GetTextBodyContent(String) |
Returns first matched body content with specified body part.
| |
| GetTextBodyPart | ||
| GetType | Gets the type of the current instance. (Inherited from Object.) | |
| IsMimeType |
Determines if the MIME type of this Entity matches the
given one. MIME types are case-insensitive.
(Inherited from Entity.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | (Overrides Object ToString .) | |
| WriteTo | (Overrides Entity WriteTo(Stream).) |
Properties
| Name | Description | |
|---|---|---|
| Body |
Gets the body of this entity.
(Inherited from Entity.) | |
| Charset |
Determines the MIME character set encoding of this Entity.
(Inherited from Entity.) | |
| ContentTransferEncoding |
Determines the transfer encoding of this Entity.
(Inherited from Entity.) | |
| CurrentEncoding | (Inherited from Entity.) | |
| Header |
Gets the entity header.
(Inherited from Entity.) | |
| IsMultipart |
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.) | |
| MimeType |
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.) | |
| Parent |
Gets the parent entity of this entity.
Returns null if this is the root entity.
(Inherited from Entity.) | |
| Subject |
Gets the Subject field.
| |
| UseTempFileStorage |
See Also