# EmailStorePstWriterOptions

Controls creation of a new managed Unicode PST file.

Class 

`OfficeIMO.Email.Store`

**Namespace**

`OfficeIMO.Email.Store`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[EmailStorePstWriterOptions.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstWriterOptions.cs#L6)

**Modifiers**

sealed

Controls creation of a new managed Unicode PST file.

## Inheritance

- object
- EmailStorePstWriterOptions

## 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 [EmailStorePstWriter.Create](/api/email/officeimo-email-store-emailstorepstwriter/#method-create-string-officeimo-email-store-emailstorepstwriteroptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public EmailStorePstWriterOptions(string? displayName = null, bool overwriteExisting = false, bool failOnLoss = false, int maxFolderCount = 100000, int maxItemCount = 2147483647, int maxNestedMessageDepth = 32, string? checkpointPath = null, int checkpointIntervalItems = 1000, int maxIndexRecordsInMemory = 65536, bool retainCheckpointOnDispose = true, int maxDiagnostics = 10000, IProgress<EmailStorePstWriteProgress>? progress = null)` [#](#constructor-ctor-string-boolean-boolean-int32-int32-int32-string-int32-int32-boolean-int32-iprogress-officeimo-email-store-emailstorepstwriteprogress)

[EmailStorePstWriterOptions.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstWriterOptions.cs#L6)

Creates PST writer options.

Parameters

**displayName string? = null optional**

**overwriteExisting bool = false optional**

**failOnLoss bool = false optional**

**maxFolderCount int = 100000 optional**

**maxItemCount int = 2147483647 optional**

**maxNestedMessageDepth int = 32 optional**

**checkpointPath string? = null optional**

**checkpointIntervalItems int = 1000 optional**

**maxIndexRecordsInMemory int = 65536 optional**

**retainCheckpointOnDispose bool = true optional**

**maxDiagnostics int = 10000 optional**

**progress System.IProgress<OfficeIMO.Email.Store.EmailStorePstWriteProgress>? = 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 string DisplayName { get; }` [#](#property-displayname)

[EmailStorePstWriterOptions.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstWriterOptions.cs#L40)

Display name stored in the message-store object.

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

[EmailStorePstWriterOptions.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstWriterOptions.cs#L43)

Whether an existing destination may be atomically replaced.

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

[EmailStorePstWriterOptions.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstWriterOptions.cs#L46)

Whether a fidelity warning prevents completion.

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

[EmailStorePstWriterOptions.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstWriterOptions.cs#L49)

Maximum folders accepted by one writer.

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

[EmailStorePstWriterOptions.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstWriterOptions.cs#L52)

Maximum top-level items accepted by one writer.

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

[EmailStorePstWriterOptions.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstWriterOptions.cs#L55)

Maximum embedded-message nesting depth written.

`public string? CheckpointPath { get; }` [#](#property-checkpointpath)

[EmailStorePstWriterOptions.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstWriterOptions.cs#L58)

Optional durable state file used to resume an [EmailStorePstWriter](/api/email/officeimo-email-store-emailstorepstwriter/).

`public int CheckpointIntervalItems { get; }` [#](#property-checkpointintervalitems)

[EmailStorePstWriterOptions.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstWriterOptions.cs#L61)

Number of newly accepted items between automatic durable checkpoints.

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

[EmailStorePstWriterOptions.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstWriterOptions.cs#L64)

Maximum fixed index records sorted in managed memory at one time.

`public bool RetainCheckpointOnDispose { get; }` [#](#property-retaincheckpointondispose)

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

Whether an incomplete writer preserves or creates its checkpoint when disposed.

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

[EmailStorePstWriterOptions.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStorePstWriterOptions.cs#L70)

Maximum detailed diagnostics retained in managed memory and checkpoints.

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

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

Optional progress sink. Reports contain counts and paths, never message content.

<!-- PowerForge markdown artifact sha256:5047135E8382E65D8CB04002095DB001BFF416D84A7B1CED5D026BC230069055 -->
