Class
EmailAttachmentTextReader
OfficeIMO.Email
Decodes bounded text attachments using their MIME charset and any Unicode byte-order mark.
Inheritance
- object
- EmailAttachmentTextReader
Methods
public static EmailAttachmentTextResult Read(EmailAttachment attachment, long maxBytes = 16777216, CancellationToken cancellationToken = default) #Reads decoded attachment bytes. A Unicode BOM takes precedence over the declared charset. Charsetless content uses the MIME reader's UTF-8 then Windows-1252 recovery policy. The attachment's reopenable source is disposed within the call.
Parameters
- attachment OfficeIMO.Email.EmailAttachment
- maxBytes long = 16777216
- cancellationToken System.Threading.CancellationToken = default
Returns
EmailAttachmentTextResult