Property Attachments
Attachments
Gets the list of embedded sub-attachments contained within this attachment.
public IReadOnlyList<Attachment> Attachments { get; }
Property Value
Examples
using LMKit.Data;
var email = new Attachment("message.eml");
foreach (var child in email.Attachments)
{
Console.WriteLine($" {child.Name} ({child.Mime}, {child.Length} bytes)");
}
Remarks
Some document formats contain embedded files. This property extracts them as child Attachment instances that can be processed independently.
- EML: email file attachments (images, documents, nested emails).
- MBOX: each email message and its attachments.
- PDF: embedded files stored in the PDF attachment collection.
For formats that do not support embedded files, this property returns an empty list. The list is computed on first access and cached for subsequent calls.