Topic Path: Symbol Reference > Classes > TIdAttachmentMemory Class > TIdAttachmentMemory Methods > Create Constructor > Create Constructor (TIdMessageParts, String)
TIdAttachmentMemory.Create Constructor (TIdMessageParts, String)

Constructor for the object instance.

constructor Create(
    Collection: TIdMessageParts; 
    const CopyFrom: String
); overload; reintroduce;
Collection that owns the message part.
String containing the contents for the message part. 

Create is the constructor for the object instance. 

Create is overloaded in TIdAttachmentMemory to allow specifying the collection that owns the message part, and the string that contains the contents for the message part. 

Create calls the inherited Create method, and allocates the internal TMemoryStream used in the DataStream property. 

The value in CopyFrom is written to DataStream to set the contents for the message part. 

Use Destroy to free the message part from the Collection.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.