Provides properties and methods for examining the collection of MimePart objects.
For a list of all members of this type, see MimePartCollection Members.
System.Object
System.Collections.CollectionBase
MailBee.Mime.MimePartCollection
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
This sample loads the message from .EML file and displays Content-Type of all MIME parts.
[C#] 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"); // For every part... foreach (MimePart part in msg.MimePartTree.GetAllParts()) { // ...show its Content-Type. Console.WriteLine("The type is " + part.ContentType); }
[Visual Basic] ' To use the code below, import MailBee namespaces at the top of your code. Imports MailBee Imports MailBee.Mime ' The actual code (put it into a method of your class) ' Load the message from file. Dim msg As New MailMessage msg.LoadMessage("C:\Docs\TestMail.eml") ' For every part... For Each part As MimePart In msg.MimePartTree.GetAllParts() ' ...show its Content-Type. Console.WriteLine("The type is " & part.ContentType) Next
Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll)
MimePartCollection Members | MailBee.Mime Namespace | MimePart