Internet Direct (Indy) Version 9.0.1 Beta
TIdMessageParts.Add
Adds a message part to the collection.

function Add: TIdMessagePart;
Returns
TIdMessagePart - Message part added to the collection.

Description
Add is a TIdMessagePart function that is disabled for the collection. Add always returns Nil as the return value. Add is disabled to prevent adding the ancestor class TIdMessagePart to the collection. Use TIdText.Create and TIdAttachment.Create to add the new collection item to the collection identified by the Collection parameter.