CompoundFileOptions Class
Definition
Specifies options that control how a CompoundFile is opened for reading.
public sealed class CompoundFileOptions
- Inheritance
-
CompoundFileOptions
- Inherited Members
- Extension Methods
Remarks
The default instance buffers the whole file into memory and validates it at Compatible, matching the behavior of the parameterless read overloads.
Constructors
CompoundFileOptions()
public CompoundFileOptions()
Properties
Default
Gets a shared CompoundFileOptions instance carrying the default values.
public static CompoundFileOptions Default { get; }
Property Value
- CompoundFileOptions
The default options.
MaxBufferedBytes
Gets or sets the size threshold, in bytes, above which a seekable source is read on demand.
public long MaxBufferedBytes { get; set; }
Property Value
- long
Only consulted when ReadStrategy is Auto.
ReadStrategy
Gets or sets the strategy used to source the file's bytes.
public CompoundReadStrategy ReadStrategy { get; set; }
Property Value
- CompoundReadStrategy
The configured CompoundReadStrategy; Buffered by default.
ValidationLevel
Gets or sets how strictly the container's structure is validated.
public CompoundValidationLevel ValidationLevel { get; set; }
Property Value
- CompoundValidationLevel
The configured CompoundValidationLevel; Compatible by default.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |