Internet Direct (Indy)
Home
PreviousUpNext
TIdMessageParts.Add Method

Adds a message part to the collection.

Pascal
function Add: TIdMessagePart;

TIdMessagePart - Message part added to the collection.

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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.