# ArchiveExtractionOptions

Finite resource and selection limits for one archive extraction.

Class 

`OfficeIMO.Archives`

**Namespace**

`OfficeIMO.Archives`

**Assembly**

`OfficeIMO.Archives`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[ArchiveExtractionOptions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L22)

**Modifiers**

sealed

Finite resource and selection limits for one archive extraction.

## Inheritance

- object
- ArchiveExtractionOptions

## Usage

Explore 2 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 2

- Method [ArchiveExtractor.Extract](/api/archives/officeimo-archives-archiveextractor/#method-extract-string-string-officeimo-archives-archiveextractionoptions-threading-cancellationtoken) parameter `options`
- Method [ArchiveExtractor.ExtractRar5Volumes](/api/archives/officeimo-archives-archiveextractor/#method-extractrar5volumes-collections-generic-ireadonlylist-system-string-string-officeimo-archives-archiveextractionoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public ArchiveExtractionOptions()` [#](#constructor-ctor)

[ArchiveExtractionOptions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L22)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public ArchiveOperationBudget? OperationBudget { get; set; }` [#](#property-operationbudget)

[ArchiveExtractionOptions.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L6)

Optional cumulative budget shared with related and nested archive operations.

`public int? ZipLegacyCodePage { get; set; }` [#](#property-ziplegacycodepage)

[ArchiveExtractionOptions.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L9)

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.

`public string? ZipPassword { get; set; }` [#](#property-zippassword)

[ArchiveExtractionOptions.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L12)

Password for encrypted ZIP members (traditional ZipCrypto and WinZip AES), encoded as UTF-8. Null leaves encrypted members unreadable: they raise [ArchivePasswordException](/api/archives/officeimo-archives-archivepasswordexception/) when opened.

`public IReadOnlyCollection<ArchiveFormat>? AllowedFormats { get; set; }` [#](#property-allowedformats)

[ArchiveExtractionOptions.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L17)

Allowed formats detected from package bytes. Null permits every supported format. A compression wrapper is refused before decoding when neither its single-file nor its TAR format is allowed. Otherwise the decoded format is checked before publication.

`public long MaxWindowBytes { get; set; }` [#](#property-maxwindowbytes)

[ArchiveExtractionOptions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L22)

Maximum history window or dictionary a Zstandard, xz or lzip stream may declare. Defaults to 64 MiB, which covers zstd levels up to 19, xz -9 and lzip -9. zstd levels 20 to 22 with --ultra, and --long or an explicit windowLog, can declare 128 MiB or more and need a higher limit. The window is allocated as the stream needs it.

`public bool RestoreUnixExecutePermissions { get; set; }` [#](#property-restoreunixexecutepermissions)

[ArchiveExtractionOptions.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L25)

Restores the three archived Unix execute bits on regular files on supported .NET Unix hosts. Other mode bits retain the filesystem defaults.

`public long MaxInputBytes { get; set; }` [#](#property-maxinputbytes)

[ArchiveExtractionOptions.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L27)

Maximum package size in bytes. Defaults to 512 MiB.

`public int MaxEntryCount { get; set; }` [#](#property-maxentrycount)

[ArchiveExtractionOptions.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L29)

Maximum number of declared archive members or MSI File rows.

`public int MaxCabinetCount { get; set; }` [#](#property-maxcabinetcount)

[ArchiveExtractionOptions.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L31)

Maximum distinct embedded MSI cabinets. Defaults to 256, including cabinets with empty or unselected files.

`public long MaxEntryBytes { get; set; }` [#](#property-maxentrybytes)

[ArchiveExtractionOptions.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L33)

Maximum expanded size of any member. Defaults to 256 MiB.

`public long MaxExpandedBytes { get; set; }` [#](#property-maxexpandedbytes)

[ArchiveExtractionOptions.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L35)

Maximum aggregate expanded bytes. CAB folder decoding also observes this bound.

`public long MaxDecompressionWorkBytes { get; set; }` [#](#property-maxdecompressionworkbytes)

[ArchiveExtractionOptions.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L40)

Maximum aggregate decompression and verification work for the selected archive or its embedded containers. Defaults to 2 GiB, independently of expanded content. Each frame charges the greatest of 32 KiB, its complete CFDATA record size, and its expanded size plus any MSZIP dictionary replay. This bounds processing work rather than measuring exact CPU time.

`public long MaxMetadataBytes { get; set; }` [#](#property-maxmetadatabytes)

[ArchiveExtractionOptions.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L43)

Maximum metadata bytes. Defaults to 64 MiB. Applies to MSI metadata streams and separately to 7z or RAR5 headers and their retained portable-path indexes.

`public int MaxTableRows { get; set; }` [#](#property-maxtablerows)

[ArchiveExtractionOptions.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L45)

Maximum rows per MSI metadata table.

`public int MaxStringPoolEntries { get; set; }` [#](#property-maxstringpoolentries)

[ArchiveExtractionOptions.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L47)

Maximum MSI string-pool entries, excluding the null reference. Defaults to 200,000, independently of table rows.

`public int MaxPathDepth { get; set; }` [#](#property-maxpathdepth)

[ArchiveExtractionOptions.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L49)

Maximum output-path segments and structural MSI directory depth, including the root and '.' directories.

`public int MaxPathLength { get; set; }` [#](#property-maxpathlength)

[ArchiveExtractionOptions.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L51)

Maximum characters in an authored relative output path.

`public Func<string, bool>? IncludeFile { get; set; }` [#](#property-includefile)

[ArchiveExtractionOptions.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveExtractionOptions.cs#L55)

Optional file selection predicate receiving a normalized authored relative path. MSI aliases invoke it once with their deterministic logical target. All member names remain subject to safety, collision and payload-consistency checks.

<!-- PowerForge markdown artifact sha256:BAE2D1C36CE614BECCF011EE94D5BF14C9560A01EDE6DAAC1485D6AC27ED4FCB -->
