BeforeSendAttachment Event
Marks the start of sending an attachment.
Syntax
public event OnBeforeSendAttachmentHandler OnBeforeSendAttachment; public delegate void OnBeforeSendAttachmentHandler(object sender, SoapclientBeforeSendAttachmentEventArgs e); public class SoapclientBeforeSendAttachmentEventArgs : EventArgs { public bool LastAttachment { get; set; } }
Public Event OnBeforeSendAttachment As OnBeforeSendAttachmentHandler Public Delegate Sub OnBeforeSendAttachmentHandler(sender As Object, e As SoapclientBeforeSendAttachmentEventArgs) Public Class SoapclientBeforeSendAttachmentEventArgs Inherits EventArgs Public Property LastAttachment As Boolean End Class
Remarks
Use either AttachmentBytes, AttachmentFile or AttachmentStream properties to pass attachment to the component.
Set LastAttachment parameter to False to indicate that you have more than one attachment to pass.