Hunny Software Library Reference

BodyPart Class

Class that represents a MIME body part.

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

System.Object
   Node
      Entity
         BodyPart

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

Remarks

BodyPart represents a body part, as described in RFC 2045 and RFC 2046. A body part is an entity, so it has a collection of header fields and a body. A body part is different from a message in that a body part is part of a multipart body.

In Hunny MIME.NET, a BodyPart is a subclass of Entity; therefore, it contains both a Headers object and a Body object, and it is contained in a multipart Body object.

In the document tree representation of message, a BodyPart object is always an intermediate node, having a parent node and child nodes. The parent node is the Body object that contains it. The child nodes are the Headers object and the Body object it contains. (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

BodyPart Members | Hunny.Mime Namespace