PstValidationLevel Enum
Definition
Specifies how strictly a file's structures and checksums are validated while reading.
public enum PstValidationLevel
- Extension Methods
Fields
Compatible = 0Structural validation plus the header checksum; page and block checksums and signatures are skipped. The default, tolerating the deviations of real-world writers.
Strict = 1Everything 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 = 2Structural 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
| Product | Versions |
|---|---|
| .NET | 8, 10 |