EmailMessage
OfficeIMO.Email
A handle-free message view. Payload operations reopen its unchanged local source for their duration.
Inheritance
- object
- EmailMessage
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Property EmailMessageAttachment.Message
- Property EmailMessageReadResult.Messages
Methods
public EmailWriteResult Save(string path, bool overwrite = false, CancellationToken cancellationToken = default, EmailWriterOptions? options = null) #Exports a native email artifact with an atomic destination conflict policy.
Parameters
- path string
- overwrite bool = false
- cancellationToken System.Threading.CancellationToken = default
- options OfficeIMO.Email.EmailWriterOptions? = null
Returns
EmailWriteResultpublic EmailAttachmentExtractionResult SaveAttachments(string directory, IEnumerable<int> indexes, CancellationToken cancellationToken = default, string? fileNamePrefix = null) #Extracts selected top-level attachments through the bounded shared extractor.
Parameters
- directory string
- indexes System.Collections.Generic.IEnumerable<int>
- cancellationToken System.Threading.CancellationToken = default
- fileNamePrefix string? = null
public T? UseDocument<T>(Func<EmailDocument, T?> operation, CancellationToken cancellationToken = default) #Runs an owner operation with a full document and releases its source immediately afterward.
Type Parameters
- T
Parameters
- operation System.Func<OfficeIMO.Email.EmailDocument, T?>
- cancellationToken System.Threading.CancellationToken = default
Returns
T?Inherited Methods
Properties
public string? FolderPath { get; } #Store folder path, or null for an individual file.
public string? HtmlBody { get; } #Original HTML body alternative, when present. Use the HTML exporter for a safe projection.
public IReadOnlyList<EmailMessageAttachment> Attachments { get; } #Attachment metadata; reading this collection does not retain payloads.
public EmailStoreItemContentAvailability? ContentAvailability { get; } #Local-cache availability reported by the store reader; null for individual files.
public string ExportName { get; } #Portable subject and source-identity filename stem for batch exports.