Constructor AttachmentEntry
- Namespace
- MailFathom.Application.Discovery.Presentation.Blocks
- Assembly
- MailFathom.Application.dll
AttachmentEntry(PresentationCitationId, PresentationText, PresentationText?, long, AttachmentAvailability)
Initializes one file found in mail.
public AttachmentEntry(PresentationCitationId source, PresentationText name, PresentationText? mediaType, long sizeOctets, AttachmentAvailability availability)
Parameters
sourcePresentationCitationIdThe citation resolving to the attachment.
namePresentationTextThe file's name, normalized.
mediaTypePresentationText?The media type the message declared, or null where it declared none.
sizeOctetslongHow large the message says the file is.
availabilityAttachmentAvailabilityWhether the file can be opened.
Exceptions
- ArgumentException
Thrown when the source or the name is the unspecified default.
- ArgumentOutOfRangeException
Thrown when
sizeOctetsis negative.