Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

EmailMapiProjection

OfficeIMO.Email

Namespace
OfficeIMO.Email
Assembly
OfficeIMO.Email
Source revision
be6c300e4ab1 with working tree changes
Modifiers
static

Projects an already decoded set of MAPI properties onto the common EmailDocument model. Container readers such as PST and OLM readers can use this entry point without duplicating MSG semantics.

Inheritance

  • object
  • EmailMapiProjection

Methods

public static EmailReadResult Project(EmailDocument document, int? codePage = null, EmailReaderOptions? options = null, string? location = null, CancellationToken cancellationToken = default) #

Applies common message fields, typed Outlook item fields, transport headers, and protection metadata to an existing document. Existing recipients and attachments are preserved.

Parameters

document OfficeIMO.Email.EmailDocument required
Document whose EmailDocument.MapiProperties have been decoded.
codePage int? = null optional
Preferred code page for legacy MAPI byte strings and HTML.
options OfficeIMO.Email.EmailReaderOptions? = null optional
Reader safety limits used by derived-body projections.
location string? = null optional
Logical diagnostic location.
cancellationToken System.Threading.CancellationToken = default optional
Cancellation token.

Returns

EmailReadResult The projected document and any structured diagnostics.