# EmailStoreExportOptions

Selection, format, and failure policy for item-by-item directory export.

Class 

`OfficeIMO.Email.Store`

**Namespace**

`OfficeIMO.Email.Store`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[EmailStoreExportOptions.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Export/EmailStoreExportOptions.cs#L8)

**Modifiers**

sealed

Selection, format, and failure policy for item-by-item directory export.

## Inheritance

- object
- EmailStoreExportOptions

## Usage

Explore 1 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.

### Accepted by parameters 1

- Method [EmailStoreSession.ExportToDirectory](/api/email/officeimo-email-store-emailstoresession/#method-exporttodirectory-string-officeimo-email-store-emailstoreexportoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public EmailStoreExportOptions(EmailFileFormat format = Eml, string? folderId = null, bool includeDescendants = false, bool includeAssociatedItems = false, bool includeOrphanedItems = false, bool preserveFolderHierarchy = true, bool overwriteExisting = false, bool continueOnError = true, bool writeManifest = true, int maxItems = 100000, EmailWriterOptions? writerOptions = null)` [#](#constructor-ctor-officeimo-email-emailfileformat-string-boolean-boolean-boolean-boolean-boolean-boolean-boolean-int32-officeimo-email-emailwriteroptions)

[EmailStoreExportOptions.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Export/EmailStoreExportOptions.cs#L8)

Creates export options.

Parameters

**format OfficeIMO.Email.EmailFileFormat = Eml optional**

**folderId string? = null optional**

**includeDescendants bool = false optional**

**includeAssociatedItems bool = false optional**

**includeOrphanedItems bool = false optional**

**preserveFolderHierarchy bool = true optional**

**overwriteExisting bool = false optional**

**continueOnError bool = true optional**

**writeManifest bool = true optional**

**maxItems int = 100000 optional**

**writerOptions OfficeIMO.Email.EmailWriterOptions? = null optional**

## 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 EmailFileFormat Format { get; }` [#](#property-format)

[EmailStoreExportOptions.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Export/EmailStoreExportOptions.cs#L42)

Destination artifact format.

`public string? FolderId { get; }` [#](#property-folderid)

[EmailStoreExportOptions.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Export/EmailStoreExportOptions.cs#L45)

Optional source folder identifier. Null exports every folder.

`public bool IncludeDescendants { get; }` [#](#property-includedescendants)

[EmailStoreExportOptions.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Export/EmailStoreExportOptions.cs#L48)

Whether descendants of [EmailStoreExportOptions.FolderId](/api/email/officeimo-email-store-emailstoreexportoptions/) are included.

`public bool IncludeAssociatedItems { get; }` [#](#property-includeassociateditems)

[EmailStoreExportOptions.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Export/EmailStoreExportOptions.cs#L51)

Whether folder-associated information items are exported.

`public bool IncludeOrphanedItems { get; }` [#](#property-includeorphaneditems)

[EmailStoreExportOptions.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Export/EmailStoreExportOptions.cs#L54)

Whether recoverable items absent from contents tables are exported.

`public bool PreserveFolderHierarchy { get; }` [#](#property-preservefolderhierarchy)

[EmailStoreExportOptions.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Export/EmailStoreExportOptions.cs#L57)

Whether the source folder hierarchy is represented in destination directories.

`public bool OverwriteExisting { get; }` [#](#property-overwriteexisting)

[EmailStoreExportOptions.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Export/EmailStoreExportOptions.cs#L60)

Whether an existing artifact with the same stable source identifier may be replaced.

`public bool ContinueOnError { get; }` [#](#property-continueonerror)

[EmailStoreExportOptions.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Export/EmailStoreExportOptions.cs#L63)

Whether export continues after an item read or write failure.

`public bool WriteManifest { get; }` [#](#property-writemanifest)

[EmailStoreExportOptions.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Export/EmailStoreExportOptions.cs#L66)

Whether a tab-separated preservation manifest is written after the export.

`public int MaxItems { get; }` [#](#property-maxitems)

[EmailStoreExportOptions.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Export/EmailStoreExportOptions.cs#L69)

Maximum item references attempted.

`public EmailWriterOptions WriterOptions { get; }` [#](#property-writeroptions)

[EmailStoreExportOptions.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Export/EmailStoreExportOptions.cs#L72)

Underlying OfficeIMO.Email conversion and output policy.

<!-- PowerForge markdown artifact sha256:87CED34CAD8F621E028B214C92D57EC7222C3186602FC9A83870FD85C8C3A493 -->
