Hunny Software Library Reference

Body.Assemble Method 

Assembles the string representation.

[Visual Basic]
Overrides Public Sub Assemble()
[C#]
public override void Assemble();

Remarks

This method, inherited from Node, executes the assemble operation for Body objects. The assemble operation creates or updates the string representation from the broken-down representation. Only Body objects with content type of "multipart/*" or "message/rfc822" require assembling. In either case, the Body object must be able to find the headers of the message or body part that contains it. Therefore, if the Body object is not the child of an Entity (that is, a Message or BodyPart) object, the Body cannot be assembled because the content type cannot be determined.

This method calls the Assemble() method of any BodyPart or Message object it contains.

You should call this method after you add a BodyPart object to a "multipart/*" body, or add a Message object to a "message/rfc822" body, and before you access the object's string representation.

This method clears the is-modified flag.

See Also

Body Class | Hunny.Mime Namespace