AttachmentCollectionClear Method
Clears the attachments collection.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public void Clear()
Remarks
All Attachment objects contained in the collection will be removed from the mail message.
Examples
This sample loads the message from .EML file and clears the attachment collection.
// To use the code below, import MailBee namespaces at the top of your code.
using MailBee;
using MailBee.Mime;

// The actual code (put it into a method of your class)

// Load the message from file.
MailMessage msg = new MailMessage();
msg.LoadMessage(@"C:\Docs\TestMail.eml");

// Remove all the attachments from the message.
msg.Attachments.Clear();
See Also