Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ArchiveTraversalOptions

OfficeIMO.Archives

Namespace
OfficeIMO.Archives
Assembly
OfficeIMO.Archives
Source revision
b64f287c0e54 with working tree changes
Modifiers
sealed

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

Constructors

public ArchiveTraversalOptions() #

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 int MaxDepth { get; set; } #

Maximum path depth for entries.

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).