Internet Direct (Indy)
Home
PreviousUpNext
TIdMessagePart.Create Constructor

Constructor for the collection item.

Pascal
constructor Create(
    Collection: TIdCollection
); override;
Parameters 
Description 
Collection 
Owner of the collection item. 

Create is the constructor for the collection item. 

Create raises an EIdCanNotCreateMessagePart exception if the ClassType for the message part is TIdMessagePart. Use a TIdMessagePart descendant to override this constructor with parameters to add items to a TIdMessageParts collection. 

Create calls the inherited Create method to initialize the object instance, and allocates resources required for the Headers and ExtraHeaders properties. 

Create sets the default values for the following properties: 

 

Property 
Default Value 
False 
-1 (indicating a top-level message part) 

 

Use Destroy to free the collection item.

Exceptions 
Description 
With the message RSTIdMessagePartCreate
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.