TnefParserGetAttachments Method (Byte, TnefExtractionOptions) |
Namespace: MailBee.Tnef
public static AttachmentCollection GetAttachments( byte[] data, TnefExtractionOptions options )
Exception | Condition |
---|---|
MailBeeInvalidArgumentException | data is a null reference (Nothing in Visual Basic). |
MailBeeTnefException | A TNEF parsing error occurred. |
In case if you got an e-mail with a TNEF attachment, it's easier to use GetAttachmentsFromTnef method to extract data from it.
This overload internally handles the situation when the source data ends with excessive CRLF at the end. You don't need to do anything to handle this situation.