Class that represents a header field body.
For a list of all members of this type, see FieldBody Members.
System.Object
Node
FieldBody
FieldBody represents a header field body in an RFC 2822
message or MIME body part. It is a base class that defines the
interface common to all structured and unstructured field bodies.
In the document tree representation of a message, a
FieldBody object may be either a leaf node, having a parent node
but no child nodes, or an intermediate node, having both a parent node
and one or more child nodes. The parent node is the Field object that contains it. The child nodes, if
present, depend on the particular subclass of FieldBody. An
AddressList object, for example, has Address objects as
its child nodes. (See the documentation for Node
for a discussion of the tree representation of a message.)
Many header fields, such as the Date header field, have
structured field bodies. For those header fields, the structured field
body is represented by a subclass of FieldBody. Other header
fields, such as the Content-Description header field, have
unstructured field bodies. For those headers fields, the unstructured
field body is represented by the FieldBody class itself.
To get or set the (unfolded) text of the field body, get or set the
String property inherited from Node. Alternatively, to get or set the folded text, get
or set the Text convenience property.
Some MIME parsers are broken in that they do not handle the folding
of some fields properly. FieldBody folds its string
representation by default. You may set the FoldingEnabled property to enable or disable folding. To
determine if folding is enabled, check the value of the
FoldingEnabled property.
Namespace: Hunny.Mime
Assembly: Hunny.Mime (in Hunny.Mime.dll)
FieldBody Members | Hunny.Mime Namespace