RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SOAPAttachIntf.TOnGetAttachmentEvent Type

TOnGetAttachmentEvent is the type of event handlers that respond when a remote interfaced object receives an attachment in a response from a Web Service provider.

Pascal
TOnGetAttachmentEvent = procedure (AttachmentStream: TStream; Attachment: TSOAPAttachment) of object;
C++
(AttachmentStream: TStream; Attachment: TSOAPAttachment) ( TOnGetAttachmentEvent)();

TOnGetAttachmentEvent is the type of the OnGetAttachment event handler, which is called for every attachment that a client receives in the encoded results from executing a method on an invokable interface. 

AttachmentStream is a stream from which you can read or change the content of the attachment. This is the section of the multipart form received from the server that represents the current attachment. 

Attachment is the TSOAPAttachment instance that will represent the current attachment. Because the attachment has not yet been saved to a temporary file, this object can't be used to read the current attachment (use the AttachmentStream parameter instead). However, its ID and Headers properties are initialized when the event handler is called, so Attachment can be used to read the values of any headers in the attachment. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!