API Reference
Class
EmailAttachmentTextReader
Decodes bounded text attachments using their MIME charset and any Unicode byte-order mark.
Inheritance
- Object
- EmailAttachmentTextReader
Methods
public static EmailAttachmentTextResult Read(EmailAttachment attachment, Int64 maxBytes = 16777216, CancellationToken cancellationToken = default) #Returns:
EmailAttachmentTextResultReads 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 System.Int64 = 16777216
- cancellationToken System.Threading.CancellationToken = default
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object