Table of Contents

PstValidationLevel Enum

Definition

Namespace
Bodu.IO.Pst
Assembly
Bodu.IO.Pst.dll
Package
Bodu.IO.Pst 1.3.0
Source
PstValidationLevel.cs

Specifies how strictly a file's structures and checksums are validated while reading.

public enum PstValidationLevel
Extension Methods

Fields

Compatible = 0

Structural validation plus the header checksum; page and block checksums and signatures are skipped. The default, tolerating the deviations of real-world writers.

Strict = 1

Everything Compatible checks, plus the checks the tolerant levels skip.

Under this level the reader also rejects a page or block whose checksum, trailer signature, or recorded block identifier disagrees; a header whose declared file length lies beyond the end of the stream; a property-context record with a wire type the reader does not know; BTree-on-heap keys out of order, property-context keys among them; and a table whose row matrix holds more rows than its row index records.

Minimal = 2

Structural validation only; every checksum is skipped, the header checksum included.

This level differs from Compatible only in skipping the header's partial checksum: both tolerant levels skip page and block checksums and apply the same structural checks, so a damaged file reads no further under this level unless its header checksum is what fails. To recover what a damaged file still holds, set OmitUnresolvableValues, which leaves out a value whose reference does not resolve instead of failing its context.

Applies to

ProductVersions
.NET8, 10