Hunny Software Library Reference

Entity Class

Abstract class that represents a MIME entity.

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

System.Object
   Node
      Entity

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

Remarks

RFC 2045 defines an entity as either a message or a body part, both of which have a collection of header fields and a body. In Hunny MIME.NET, an entity is represented by the class Entity, which contains both a Headers object and a Body object.

In the document tree representation of message, an Entity object may be either a root node, having child nodes but no parent node, or an intermediate node, having both a parent node and child nodes. An Entity object that is a root node should be a Message object. An Entity object that is an intermediate node should be a BodyPart object, and its parent should be a Body object. The child nodes of an Entity object are the Headers and Body objects it contains. (See the documentation for Node for a discussion of the tree representation of a message.)

Since Entity is an abstract base class, you cannot create instances of it directly. Entity has two derived classes, Message and BodyPart, which are concrete classes.

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

Requirements

Namespace: Hunny.Mime

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

See Also

Entity Members | Hunny.Mime Namespace