# EmailPortableContentExportResult<TDocument>

A detached portable model, its serialized snapshot, and projection diagnostics.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[EmailPortableContentExport.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Export/EmailPortableContentExport.cs#L35)

**Modifiers**

sealed

A detached portable model, its serialized snapshot, and projection diagnostics.

## Inheritance

- object
- EmailPortableContentExportResult<TDocument>

## Usage

Explore 4 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 4

- Method [EmailPortableContentCollection.ToCalendars](/api/email/officeimo-email-emailportablecontentcollection/#method-tocalendars-collections-generic-ienumerable-officeimo-email-emaildocument-officeimo-email-emailportablecontentexportoptions-int32-threading-cancellationtoken)
- Method [EmailPortableContentCollection.ToVCards](/api/email/officeimo-email-emailportablecontentcollection/#method-tovcards-collections-generic-ienumerable-officeimo-email-emaildocument-officeimo-email-emailportablecontentexportoptions-int32-threading-cancellationtoken)
- Method [EmailPortableContentExport.ToCalendar](/api/email/officeimo-email-emailportablecontentexport/#method-tocalendar-officeimo-email-emaildocument-officeimo-email-emailportablecontentexportoptions-threading-cancellationtoken)
- Method [EmailPortableContentExport.ToVCard](/api/email/officeimo-email-emailportablecontentexport/#method-tovcard-officeimo-email-emaildocument-officeimo-email-emailportablecontentexportoptions-threading-cancellationtoken)

## Type Parameters

**TDocument**

Filter members 

Show inherited

## Methods

`public byte[] ToBytes()` [#](#method-tobytes)

[EmailPortableContentExport.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Export/EmailPortableContentExport.cs#L35)

Returns an independent copy of the UTF-8 serialized export.

Returns

`byte[]`

## 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?`

## Properties

`public TDocument Document { get; }` [#](#property-document)

[EmailPortableContentExport.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Export/EmailPortableContentExport.cs#L29)

Editable standalone model. Editing it does not change the serialized snapshot returned by ToBytes.

`public bool RetainedSemanticSource { get; }` [#](#property-retainedsemanticsource)

[EmailPortableContentExport.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Export/EmailPortableContentExport.cs#L31)

Whether unchanged imported content was used, including unmodeled properties.

`public IReadOnlyList<EmailDiagnostic> Diagnostics { get; }` [#](#property-diagnostics)

[EmailPortableContentExport.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Export/EmailPortableContentExport.cs#L33)

Decoding and known regeneration losses. This is not a whole-message preservation report.

<!-- PowerForge markdown artifact sha256:92C9B30C43946E21A4C00B6EDABA24270970F112013A84C7E3F5D2C59839D7A5 -->
