BeforeReceiveAttachment Event
Marks the start of receiving an attachment.
Syntax
public event OnBeforeReceiveAttachmentHandler OnBeforeReceiveAttachment; public delegate void OnBeforeReceiveAttachmentHandler(object sender, SoapclientBeforeReceiveAttachmentEventArgs e); public class SoapclientBeforeReceiveAttachmentEventArgs : EventArgs { }
Public Event OnBeforeReceiveAttachment As OnBeforeReceiveAttachmentHandler Public Delegate Sub OnBeforeReceiveAttachmentHandler(sender As Object, e As SoapclientBeforeReceiveAttachmentEventArgs) Public Class SoapclientBeforeReceiveAttachmentEventArgs Inherits EventArgs End Class
Remarks
This event fires for every new attachment being received from the service.
Tune up OutputAttachmentBytes, OutputAttachmentFile or OutputAttachmentStream properties inside the event handler to indicate where the attachment content should be saved.