CompoundFileFormatException Class
Definition
- Assembly
- Bodu.IO.Compound.dll
- Package
- Bodu.IO.Compound 1.0.0
The exception thrown when a stream cannot be interpreted as a well-formed OLE2 / Compound File Binary container.
public sealed class CompoundFileFormatException : CompoundFileException, ISerializable
- Inheritance
-
CompoundFileFormatException
- Implements
- Inherited Members
- Extension Methods
Remarks
This exception reports structural failures of the container itself - an invalid signature, a malformed header, a circular or out-of-range sector chain, or a corrupt directory - rather than any application-level format carried inside a stream. The Category classifies the failure in a message-independent way. It derives from CompoundFileException, the common base for all compound-file failures.
Constructors
CompoundFileFormatException()
Initializes a new instance of the CompoundFileFormatException class.
public CompoundFileFormatException()
CompoundFileFormatException(string)
Initializes a new instance of the CompoundFileFormatException class with the specified message.
public CompoundFileFormatException(string message)
Parameters
messagestringA message that describes the structural failure.
CompoundFileFormatException(string, CompoundFileError)
Initializes a new instance of the CompoundFileFormatException class with the specified message and failure category.
public CompoundFileFormatException(string message, CompoundFileError category)
Parameters
messagestringA message that describes the structural failure.
categoryCompoundFileErrorThe category that classifies the failure.
CompoundFileFormatException(string, Exception)
Initializes a new instance of the CompoundFileFormatException class with the specified message and a reference to the underlying cause.
public CompoundFileFormatException(string message, Exception innerException)
Parameters
Properties
Category
Gets the category that classifies the structural failure.
public CompoundFileError Category { get; }
Property Value
- CompoundFileError
The CompoundFileError describing the failure; Unknown when unspecified.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |