Table of Contents

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

mediaType string

The part's declared media type.

fileName AttachmentFileName?

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 mediaType is null.