Internet Direct (Indy)
Home
PreviousUpNext
TIdAttachmentMemory.Create Constructor (TIdMessageParts, String)

Constructor for the object instance.

Pascal
constructor Create(
    Collection: TIdMessageParts; 
    const CopyFrom: String
); overload; reintroduce;
Parameters 
Description 
Collection 
Collection that owns the message part.
 
CopyFrom 
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.

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.