# EmailStoreValidationOptions

Scope and safety bounds for email-store validation.

Class 

`OfficeIMO.Email.Store`

**Namespace**

`OfficeIMO.Email.Store`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Modifiers**

sealed

Scope and safety bounds for email-store validation.

## Inheritance

- object
- EmailStoreValidationOptions

## 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.Validate](/api/email/officeimo-email-store-emailstoresession/#method-validate-officeimo-email-store-emailstorevalidationoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public EmailStoreValidationOptions(EmailStoreValidationMode mode = Summaries, string? folderId = null, bool includeDescendants = false, bool includeAssociatedItems = false, bool includeOrphanedItems = true, int maxItems = 100000, bool verifyStructuralIntegrity = false, int maxStructuralPages = 100000, int maxStructuralBlocks = 100000, long maxStructuralBytes = 1073741824)` [#](#constructor-ctor-officeimo-email-store-emailstorevalidationmode-string-boolean-boolean-boolean-int32-boolean-int32-int32-int64)

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

Creates validation options.

Parameters

**mode OfficeIMO.Email.Store.EmailStoreValidationMode = Summaries optional**

**folderId string? = null optional**

**includeDescendants bool = false optional**

**includeAssociatedItems bool = false optional**

**includeOrphanedItems bool = true optional**

**maxItems int = 100000 optional**

**verifyStructuralIntegrity bool = false optional**

**maxStructuralPages int = 100000 optional**

**maxStructuralBlocks int = 100000 optional**

**maxStructuralBytes long = 1073741824 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 EmailStoreValidationMode Mode { get; }` [#](#property-mode)

[EmailStoreValidationOptions.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Inspection/EmailStoreValidationOptions.cs#L37)

Validation depth.

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

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

Optional folder identifier. Null validates every folder.

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

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

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

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

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

Whether folder-associated information items are validated.

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

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

Whether recoverable items absent from contents tables are validated.

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

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

Maximum item references examined.

`public bool VerifyStructuralIntegrity { get; }` [#](#property-verifystructuralintegrity)

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

Whether PST/OST page and block trailers, CRCs, signatures, identifiers, lengths, and bounds are verified. This is opt-in because it reads each selected structure rather than only the data needed for browsing.

`public int MaxStructuralPages { get; }` [#](#property-maxstructuralpages)

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

Maximum B-tree and free-map pages examined by structural validation.

`public int MaxStructuralBlocks { get; }` [#](#property-maxstructuralblocks)

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

Maximum BBT-referenced blocks examined by structural validation.

`public long MaxStructuralBytes { get; }` [#](#property-maxstructuralbytes)

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

Maximum page, payload, and trailer bytes read by structural validation.

<!-- PowerForge markdown artifact sha256:643A353B685EF306872FA734622A0EE35D23F5BE7F6A652A364FFCDB43D19038 -->
