# ArchiveInspectionOptions

Finite limits for one passive archive inspection and all member reads from its snapshot.

Class 

`OfficeIMO.Archives`

**Namespace**

`OfficeIMO.Archives`

**Assembly**

`OfficeIMO.Archives`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[ArchiveInspectionOptions.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveInspectionOptions.cs#L15)

**Modifiers**

sealed

Finite limits for one passive archive inspection and all member reads from its snapshot.

## Inheritance

- object
- ArchiveInspectionOptions

## 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 [ArchiveInspector.Open](/api/archives/officeimo-archives-archiveinspector/#method-open-string-officeimo-archives-archiveinspectionoptions-threading-cancellationtoken) parameter `options`
- Method [ZipArchiveEditor.Update](/api/archives/officeimo-archives-ziparchiveeditor/#method-update-string-action-officeimo-archives-ziparchiveedits-officeimo-archives-ziparchivewriteroptions-officeimo-archives-archiveinspectionoptions-threading-cancellationtoken) parameter `inputOptions`

Filter members 

Show inherited

## Constructors

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

[ArchiveInspectionOptions.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveInspectionOptions.cs#L15)

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

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

Optional cumulative budget shared with related and nested archive operations.

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

[ArchiveInspectionOptions.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveInspectionOptions.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)

[ArchiveInspectionOptions.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveInspectionOptions.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 long MaxWindowBytes { get; set; }` [#](#property-maxwindowbytes)

[ArchiveInspectionOptions.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveInspectionOptions.cs#L15)

Maximum decoder history for Zstandard, xz and lzip. Defaults to 64 MiB.

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

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

Maximum input snapshot size. Defaults to 512 MiB. ZIP snapshots spill above 64 MiB; CAB/MSI arrays also require an Int32 length.

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

[ArchiveInspectionOptions.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveInspectionOptions.cs#L19)

Maximum ZIP/CAB file records or MSI File rows, including unsupported and empty members.

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

[ArchiveInspectionOptions.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveInspectionOptions.cs#L21)

Maximum distinct embedded cabinets, including cabinets without mapped files.

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

[ArchiveInspectionOptions.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveInspectionOptions.cs#L23)

Maximum declared size of a file member or bytes returned by one storage-stream read.

`public long MaxTemporaryBytes { get; set; }` [#](#property-maxtemporarybytes)

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

Maximum decoded bytes staged privately by one CopyTo operation, across ZIP, CAB and MSI. Defaults to 256 MiB; zero permits only empty members. Checked before creating a spool or charging reads. Excludes input snapshots and filesystem extraction. This is a disk bound, not a process-memory bound.

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

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

Maximum declared aggregate CAB folder/file expansion at inventory time, and cumulative decoded folder or raw storage-stream bytes across subsequent reads. A grouped read charges each selected folder once; reading it in another call consumes this budget again.

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

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

Maximum cumulative decompression and verification work. Defaults to 2 GiB and uses the same decoder charges as extraction.

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

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

Maximum MSI metadata bytes read while building the inventory.

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

[ArchiveInspectionOptions.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveInspectionOptions.cs#L37)

Maximum rows per MSI metadata table.

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

[ArchiveInspectionOptions.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveInspectionOptions.cs#L39)

Maximum entries in the MSI string pool, excluding the null reference.

`public int MaxDirectoryRecords { get; set; }` [#](#property-maxdirectoryrecords)

[ArchiveInspectionOptions.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveInspectionOptions.cs#L42)

Maximum CAB folder, file and CFDATA records visited while building the inventory, summed across all cabinets. Also bounds the MSI compound directory slots. Defaults to 1,000,000.

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

[ArchiveInspectionOptions.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveInspectionOptions.cs#L44)

Maximum structural depth of authored MSI directories.

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

[ArchiveInspectionOptions.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveInspectionOptions.cs#L46)

Maximum characters in an assembled authored MSI target path.

<!-- PowerForge markdown artifact sha256:3F572EB3EBD20E48E017577CE4332F698A6AA7F413492505CE4AEDF036AED0F2 -->
