Creates a new instance of MimePart object from the specified MIME data.
A reference to the created MimePart object.
You can use this method to parse standalone MIME parts rather than entire messages. For instance, it's possible to tell IMAP server to return a particular MIME part. You can then parse the received data using Parse method. Then, you can create Attachment object from the created MimePart.
| Exception Type | Condition |
|---|---|
| MailBeeInvalidArgumentException | dataToParse is a null reference (Nothing in Visual Basic). |
The example is available in Envelope.GetEnvelopeItem topic.
MimePart Class | MailBee.Mime Namespace | MimePartCollection | MailMessage