Method Recognize
- Namespace
- MailFathom.Application.Emails.Extraction.Attachments
- Assembly
- MailFathom.Application.dll
Recognize(string, AttachmentFileName?)
Recognizes what an attachment declares itself to be.
public static AttachmentDocumentFormat? Recognize(string mediaType, AttachmentFileName? fileName)
Parameters
mediaTypestringThe part's declared media type.
fileNameAttachmentFileName?The normalized file name, or null when the part is unnamed.
Returns
- AttachmentDocumentFormat?
The recognized format, or null when nothing in the declaration names one.
Exceptions
- ArgumentNullException
Thrown when
mediaTypeis null.