Method HttpMessagePart() :addPart() Foundation

Adds a part to a message.

:addPart( [<oMessagePart>] ) --> 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.

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


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.


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.