ArchiveTraversalOptions
OfficeIMO.Archives
Controls safe ZIP traversal behavior.
Inheritance
- object
- ArchiveTraversalOptions
Usage
Explore 3 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters 3
- Method ArchiveReader.EnumerateZip
- Method ArchiveReader.TraverseZip
- Method ArchiveReader.ValidateZipSource
Constructors
public ArchiveTraversalOptions() #Inherited Methods
Properties
public ArchiveOperationBudget? OperationBudget { get; set; } #Optional cumulative budget for input and physical entries. Preflight alone does not charge it. An already-opened ZipArchive charges only entries; an existing inspection retains its own original budget.
public int? ZipLegacyCodePage { get; set; } #Explicit code page for unflagged non-ASCII ZIP names. Null retains strict ASCII/UTF-8 admission; the UTF-8 flag always takes precedence. No host-locale inference occurs. Applies to stream/path input; already-opened ZipArchive and ArchiveInspection instances retain their owner's decoding policy.
public int MaxEntries { get; set; } #Maximum number of entries to emit.
public int MaxPhysicalEntries { get; set; } #Maximum number of physical ZIP entries, including rejected files and directories, before archive metadata is materialized. Defaults to 10,000. This is independent of ArchiveTraversalOptions.MaxEntries.
public long MaxArchiveBytes { get; set; } #Maximum compressed archive bytes inspected. Defaults to 512 MiB.
public int MaxWarnings { get; set; } #Maximum warning records retained. The final record becomes an overflow summary when needed. Defaults to 256.
public long? MaxTotalUncompressedBytes { get; set; } #Maximum total uncompressed bytes across emitted entries.
public long? MaxEntryUncompressedBytes { get; set; } #Optional maximum uncompressed size for a single file entry.
public double? MaxCompressionRatio { get; set; } #Optional maximum uncompressed/compressed ratio for a single file entry. Helps reject high-expansion entries from suspicious archives.
public bool IncludeDirectoryEntries { get; set; } #When true, includes directory entries.
public bool DeterministicOrder { get; set; } #When true, entry order is deterministic (ordinal by FullName).