Hunny Software Library Reference

Message Class

Class that represents an RFC 2822 or MIME message.

For a list of all members of this type, see Message Members.

System.Object
   Node
      Entity
         Message

[Visual Basic]
Public Class Message
Inherits Entity
[C#]
public class Message : Entity

Remarks

A message contains both a collection of header fields and a body. In the terminology of RFC 2045, the general term for the headers-body combination is entity. In MIME.NET, Message is a direct subclass of Entity, and therefore contains both a Headers object and a Body object.

In the document tree representation of message, a Message object is almost always a root node, having child nodes but no parent node. The child nodes are the Headers object and the Body object it contains. A Message may sometimes be an intermediate node. In this special case, the parent node is a Body object of type "message/rfc822" and the Message object represents an encapsulated message. (See the documentation for Node for a discussion of the tree representation of a message.)

To access the contained Headers object, use the inherited Headers property. To access the contained Body object, use the inherited Body property.

Requirements

Namespace: Hunny.Mime

Assembly: Hunny.Mime (in Hunny.Mime.dll)

See Also

Message Members | Hunny.Mime Namespace