# EmailStorePstMutationOptions

Controls a verified atomic rewrite used to mutate an existing Unicode PST.

Class 

`OfficeIMO.Email.Store`

**Namespace**

`OfficeIMO.Email.Store`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Modifiers**

sealed

Controls a verified atomic rewrite used to mutate an existing Unicode PST.

## Inheritance

- object
- EmailStorePstMutationOptions

## 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 [EmailStorePstMutationTransaction.Open](/api/email/officeimo-email-store-emailstorepstmutationtransaction/#method-open-string-officeimo-email-store-emailstorepstmutationoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public EmailStorePstMutationOptions(int maxFolderCount = 100000, int maxItemCount = 1000000, int maxNestedMessageDepth = 32, bool failOnLoss = true, bool verifyAfterWrite = true, EmailSemanticComparisonOptions? verificationOptions = null, int maxVerificationIssues = 1000, string? backupPath = null, bool overwriteBackup = false, string? pstPassword = null, Encoding? pstPasswordEncoding = null)` [#](#constructor-ctor-int32-int32-int32-boolean-boolean-officeimo-email-emailsemanticcomparisonoptions-int32-string-boolean-string-text-encoding)

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

Creates bounded mutation options.

Parameters

**maxFolderCount int = 100000 optional**

**maxItemCount int = 1000000 optional**

**maxNestedMessageDepth int = 32 optional**

**failOnLoss bool = true optional**

**verifyAfterWrite bool = true optional**

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

**maxVerificationIssues int = 1000 optional**

**backupPath string? = null optional**

**overwriteBackup bool = false optional**

**pstPassword string? = null optional**

**pstPasswordEncoding System.Text.Encoding? = 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 int MaxFolderCount { get; }` [#](#property-maxfoldercount)

[EmailStorePstMutationOptions.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStorePstMutationOptions.cs#L38)

Maximum source and resulting folders accepted by the transaction.

`public int MaxItemCount { get; }` [#](#property-maxitemcount)

[EmailStorePstMutationOptions.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStorePstMutationOptions.cs#L41)

Maximum source and resulting items accepted by the transaction.

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

[EmailStorePstMutationOptions.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStorePstMutationOptions.cs#L44)

Maximum embedded-message nesting depth read, written, and compared.

`public bool FailOnLoss { get; }` [#](#property-failonloss)

[EmailStorePstMutationOptions.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStorePstMutationOptions.cs#L47)

Whether any fidelity warning or error prevents replacement of the original PST.

`public bool VerifyAfterWrite { get; }` [#](#property-verifyafterwrite)

[EmailStorePstMutationOptions.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStorePstMutationOptions.cs#L50)

Whether every resulting item is reopened and semantically compared before replacement.

`public EmailSemanticComparisonOptions? VerificationOptions { get; }` [#](#property-verificationoptions)

[EmailStorePstMutationOptions.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStorePstMutationOptions.cs#L53)

Optional semantic comparison policy used by post-write verification.

`public int MaxVerificationIssues { get; }` [#](#property-maxverificationissues)

[EmailStorePstMutationOptions.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStorePstMutationOptions.cs#L56)

Maximum mismatch and failure details retained in memory.

`public string? BackupPath { get; }` [#](#property-backuppath)

[EmailStorePstMutationOptions.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStorePstMutationOptions.cs#L59)

Optional path that receives a byte-for-byte backup before the original is replaced.

`public bool OverwriteBackup { get; }` [#](#property-overwritebackup)

[EmailStorePstMutationOptions.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStorePstMutationOptions.cs#L62)

Whether an existing backup path may be atomically replaced.

`public string? PstPassword { get; }` [#](#property-pstpassword)

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

Legacy PST password used to validate the source, when required.

`public Encoding PstPasswordEncoding { get; }` [#](#property-pstpasswordencoding)

[EmailStorePstMutationOptions.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStorePstMutationOptions.cs#L68)

Encoding used for legacy PST password validation.

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