# EmailStorePstMergeOptions

Controls bounded, dependency-free merging of multiple stores into one Unicode PST.

Class 

`OfficeIMO.Email.Store`

**Namespace**

`OfficeIMO.Email.Store`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[EmailStorePstMergeOptions.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L9)

**Modifiers**

sealed

Controls bounded, dependency-free merging of multiple stores into one Unicode PST.

## Inheritance

- object
- EmailStorePstMergeOptions

## 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 [EmailStoreConverter.MergeToPst](/api/email/officeimo-email-store-emailstoreconverter/#method-mergetopst-collections-generic-ienumerable-officeimo-email-store-emailstoremergesource-string-officeimo-email-store-emailstorepstmergeoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public EmailStorePstMergeOptions(bool overwriteExisting = false, string? displayName = null, EmailStoreMergeFolderMode folderMode = SeparateSourceRoots, bool deduplicate = true, EmailSemanticComparisonOptions? deduplicationOptions = null, bool continueOnSourceError = true, bool continueOnItemError = true, bool includeAssociatedItems = true, bool includeOrphanedItems = true, bool includeSearchFolders = false, int maxItems = 2147483647, int maxFolderCount = 100000, int maxNestedMessageDepth = 32, int maxRetries = 2, TimeSpan? retryDelay = null, int maxIndexRecordsInMemory = 65536, int maxDiagnostics = 10000, IProgress<EmailStoreMergeProgress>? progress = null)` [#](#member-e52f9f53836f9db1d3993ca3)

[EmailStorePstMergeOptions.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L9)

Creates merge options.

Parameters

**overwriteExisting bool = false optional**

**displayName string? = null optional**

**folderMode OfficeIMO.Email.Store.EmailStoreMergeFolderMode = SeparateSourceRoots optional**

**deduplicate bool = true optional**

**deduplicationOptions OfficeIMO.Email.EmailSemanticComparisonOptions? = null optional**

**continueOnSourceError bool = true optional**

**continueOnItemError bool = true optional**

**includeAssociatedItems bool = true optional**

**includeOrphanedItems bool = true optional**

**includeSearchFolders bool = false optional**

**maxItems int = 2147483647 optional**

**maxFolderCount int = 100000 optional**

**maxNestedMessageDepth int = 32 optional**

**maxRetries int = 2 optional**

**retryDelay System.TimeSpan? = null optional**

**maxIndexRecordsInMemory int = 65536 optional**

**maxDiagnostics int = 10000 optional**

**progress System.IProgress<OfficeIMO.Email.Store.EmailStoreMergeProgress>? = 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 bool OverwriteExisting { get; }` [#](#property-overwriteexisting)

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

Whether an existing destination may be atomically replaced.

`public string DisplayName { get; }` [#](#property-displayname)

[EmailStorePstMergeOptions.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L65)

Destination message-store display name.

`public EmailStoreMergeFolderMode FolderMode { get; }` [#](#property-foldermode)

[EmailStorePstMergeOptions.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L67)

Folder mapping policy.

`public bool Deduplicate { get; }` [#](#property-deduplicate)

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

Whether semantically equivalent items are written once.

`public EmailSemanticComparisonOptions DeduplicationOptions { get; }` [#](#property-deduplicationoptions)

[EmailStorePstMergeOptions.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L71)

Semantic policy used by the disk-backed deduplication index.

`public bool ContinueOnSourceError { get; }` [#](#property-continueonsourceerror)

[EmailStorePstMergeOptions.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L73)

Whether an unreadable source is diagnosed and the remaining sources continue.

`public bool ContinueOnItemError { get; }` [#](#property-continueonitemerror)

[EmailStorePstMergeOptions.cs:75](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L75)

Whether a permanently unreadable item is diagnosed and skipped.

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

[EmailStorePstMergeOptions.cs:77](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L77)

Whether folder-associated information items are included.

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

[EmailStorePstMergeOptions.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L79)

Whether orphaned PST/OST items recovered from source indexes are included.

`public bool IncludeSearchFolders { get; }` [#](#property-includesearchfolders)

[EmailStorePstMergeOptions.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L81)

Whether search-folder results are copied as static folders and items.

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

[EmailStorePstMergeOptions.cs:83](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L83)

Maximum source items inspected across the complete merge.

`public int MaxFolderCount { get; }` [#](#property-maxfoldercount)

[EmailStorePstMergeOptions.cs:85](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L85)

Maximum destination folders.

`public int MaxNestedMessageDepth { get; }` [#](#property-maxnestedmessagedepth)

[EmailStorePstMergeOptions.cs:87](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L87)

Maximum embedded-message nesting depth written.

`public int MaxRetries { get; }` [#](#property-maxretries)

[EmailStorePstMergeOptions.cs:89](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L89)

Maximum retries after transient source I/O failures, including deferred attachment reads for fingerprints.

`public TimeSpan RetryDelay { get; }` [#](#property-retrydelay)

[EmailStorePstMergeOptions.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L91)

Delay between transient I/O attempts.

`public int MaxIndexRecordsInMemory { get; }` [#](#property-maxindexrecordsinmemory)

[EmailStorePstMergeOptions.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L93)

Maximum PST index records sorted in managed memory at once.

`public int MaxDiagnostics { get; }` [#](#property-maxdiagnostics)

[EmailStorePstMergeOptions.cs:95](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L95)

Maximum detailed diagnostics retained in the report.

`public IProgress<EmailStoreMergeProgress>? Progress { get; }` [#](#property-progress)

[EmailStorePstMergeOptions.cs:97](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstMergeOptions.cs#L97)

Optional privacy-safe progress sink.

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