Hunny Software Library Reference

Body.Parse Method 

Parses the string representation.

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

Remarks

This method, inherited from Node, executes the parse operation for Body objects. The parse operation creates or updates the broken-down representation from the string representation. For a multipart Body object, the parse method creates a collection of BodyPart objects. For a message/rfc822 Body, the parse method creates a single Message object. For any other type of Body, the parse method does nothing.

This method calls the Parse() method of any objects it creates.

You should call this method after you set or modify the string representation, and before you access a contained BodyPart or Message.

This method clears the is-modified flag.

Note: If the Body object has no parent node -- that is, it is not contained by an Entity object -- then the parse method does nothing, since it is unable to determine the type of body.

See Also

Body Class | Hunny.Mime Namespace