Soap.SOAPAttachIntf.TOnGetAttachmentEvent

From RAD Studio API Documentation
Jump to: navigation, search

C++

typedef void __fastcall (__closure *TOnGetAttachmentEvent)(System::Classes::TStream* AttachmentStream, Soap::Invokeregistry::TSOAPAttachment* Attachment);

Properties

Type Visibility Source Unit Parent
typedef public Soap.SOAPAttachIntf.hpp Soap.SOAPAttachIntf Soap.SOAPAttachIntf

Description

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.

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.

See Also