Hunny Software Library Reference

Text Class

Class that represents text in an unstructured header field body.

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

System.Object
   Node
      FieldBody
         Text

[Visual Basic]
Public Class Text
Inherits FieldBody
[C#]
public class Text : FieldBody

Remarks

Header fields in messages that conform to RFC 2822 may contain only 7-bit ASCII characters. RFC 2047, part of the MIME standard, describes a method for encoding non-ASCII characters into 7-bit ASCII characters so that they may be inserted into message header fields. The method encodes text into encoded words. Each encoded word indentifies a character encoding (that is, a charset) and a transfer encoding, and contains the text encoded into 7-bit ASCII characters.

In MIME.NET, Text is a container for EncodedWord objects, and it contains various methods to manage its contained objects. If you are not interested in working with the encoded words, you can also access the literal text of the field body by getting the String property. Or, you may use the convenience property UnicodeText to get or set the text from a Unicode string. If you need to set text from a Unicode string and use a character encoding other than UTF-8, you may use the convenience method SetUnicodeText.

Text provides methods to access its encoded words.

Requirements

Namespace: Hunny.Mime

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

See Also

Text Members | Hunny.Mime Namespace