Method HttpMessagePart() :addPart() Foundation

Adds a part to a message.

Syntax
 
:addPart( [<oMessagePart>] ) --> oMessagePart
Parameters
<oMessagePart>
<oMessagePart> is a HttpMessagePart object. This parameter is optional. If no message part is passed in <oMessagePart>, an empty message part is created and added to the message.
Return

:addPart() returns the message part object that is added to the message.

Description

The method :addPart() adds a message part to a message. If a pre-initialized message part is to be added, it must be assigned to the <oMessagePart> parameter. Alternatively, an empty message part first can be added for later initialization using :addPart(). In this case, the <oMessagePart> parameter must be left empty.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.