AddAttachment Method
Adds FileName as an attachment.
Syntax
[VB.NET] Public Sub AddAttachment(ByVal FileName As String)
[C#] public void AddAttachment(string fileName);
Remarks
This method adds the file name as an attachment, the full list of attachments is contained in the Attachments property.
Example (Adding an Attachment)
Control.AddAttachment("C:\file1.zip") Control.AddAttachment("C:\file2.zip") Control.Send()or Example (Using Attachments Collection)
Control.Attachments.Add(New nsoftware.IPWorks.FileAttachment("name", "C:\file.txt"))NOTE: This method has a corresponding asynchronous version (AddAttachmentAsync) for use in the Xamarin environment.