Internet Direct (Indy) Version 9.0.1 Beta
TIdMessagePart.Create
Constructor for the collection item.

constructor Create(Collection: TCollection); override;
Parameters
Collection: TCollection
Owner of the collection item.

Description
Create is the constructor for the collection item, and simply raises an exception saying that a TIdMessagePart instance cannot be created and added to the collection. Use a TIdMessagePart descendant to override this constructor with parameters to add items to a TIdMessageParts collection.