CompoundFileError Enum
Definition
Categorizes the structural failure that caused a CompoundFileFormatException.
public enum CompoundFileError
- Extension Methods
Fields
Unknown = 0The failure does not fall into a more specific category.
InvalidSignature = 1The data does not begin with the compound-file signature.
InvalidByteOrder = 2The header byte-order marker is not the expected little-endian value.
InvalidSectorSize = 3The header declares an unsupported sector or mini-sector size.
InvalidHeader = 4The header is otherwise malformed or declares an unsupported layout.
TruncatedFile = 5The data is shorter than the structure it declares.
InvalidDifat = 6The double-indirect file-allocation table (DIFAT) is malformed.
SectorOutOfRange = 7A sector chain references a sector outside the file.
FatCycle = 8A regular file-allocation table (FAT) chain forms a cycle.
InvalidMiniFat = 9A mini-FAT chain is malformed or references an out-of-range mini sector.
StreamChainTooShort = 10A materialized sector chain is shorter than the declared stream size.
InvalidDirectory = 11The directory stream is malformed.
DirectoryCycle = 12The directory tree contains a cyclic or duplicated entry link.
InvalidRootStorage = 13The root storage entry is missing or has the wrong type.
InvalidPropertySet = 14A stream is not a well-formed OLE property set.
Remarks
The category provides a stable, message-independent way to reason about why a compound file was rejected, which is especially useful when validating a reader against a corpus of deliberately malformed files.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |