# EmailMapiProjection

Projects an already decoded set of MAPI properties onto the common EmailDocument model.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[EmailMapiProjection.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Mapi/EmailMapiProjection.cs#L24)

**Modifiers**

static

Projects an already decoded set of MAPI properties onto the common [EmailDocument](/api/email/officeimo-email-emaildocument/) model. Container readers such as PST and OLM readers can use this entry point without duplicating MSG semantics.

## Inheritance

- object
- EmailMapiProjection

Filter members 

Show inherited

## Methods

`public static EmailReadResult Project(EmailDocument document, int? codePage = null, EmailReaderOptions? options = null, string? location = null, CancellationToken cancellationToken = default)` [#](#method-project-officeimo-email-emaildocument-nullable-system-int32-officeimo-email-emailreaderoptions-string-threading-cancellationtoken)

[EmailMapiProjection.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Mapi/EmailMapiProjection.cs#L24)

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](/api/email/officeimo-email-emaildocument/) 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.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:B1A1F58E745FE5C0338999219FFC9781DB8CFE750045E581052B270D2D8B571F -->
