RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSOAPAttachment.Init Method

Initializes the properties of a TSOAPAttachment instance.

Pascal
procedure Init(ATempLocation: string; AHeaders: TStrings; AContentType: String; AEncoding: WideString);
C++
__fastcall Init(AnsiString ATempLocation, TStrings AHeaders, AnsiString AContentType, BSTR AEncoding);

Init sets the values of the CacheFile, Headers, ContentType, and Encoding properties to the values supplied as parameters. It is used internally to initialize a TSOAPAttachment instance to describe an attachment that the application received. 

ATempLocation is the name of the temporary file where the attachment has been stored. It becomes the value of the CacheFile property. 

AHeaders lists the headers from the portion of the multipart form that represented this attachment. It becomes the value of the Headers property. 

AContentType is the content-type of the attachment. It becomes the value of the ContentType property. 

AEncoding is the character set encoding used for the attachment. It becomes the value of the Encoding property. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!