# ArchiveReadOptions

Finite limits for verified, in-memory ZIP member reads.

Class 

`OfficeIMO.Archives`

**Namespace**

`OfficeIMO.Archives`

**Assembly**

`OfficeIMO.Archives`

**Source revision**

`d3c8d171d65a` with working tree changes

**Source**

[ArchiveReadOptions.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/d3c8d171d65ad59765435adc21f3a6b1d99dd3bb/OfficeIMO.Archives/ArchiveReadOptions.cs#L13)

**Modifiers**

sealed

Finite limits for verified, in-memory ZIP member reads.

## Inheritance

- object
- ArchiveReadOptions

## Usage

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

- Method [ArchiveReader.ListTar](/api/archives/officeimo-archives-archivereader/#method-listtar-io-stream-officeimo-archives-archivereadoptions-threading-cancellationtoken) parameter `options`
- Method [ArchiveReader.ReadTar](/api/archives/officeimo-archives-archivereader/#method-readtar-byte-officeimo-archives-archivereadoptions-threading-cancellationtoken) parameter `options`
- Method [ArchiveReader.ReadZip](/api/archives/officeimo-archives-archivereader/#method-readzip-byte-officeimo-archives-archivereadoptions-threading-cancellationtoken) parameter `options`
- Method [GZipArchive.Decompress](/api/archives/officeimo-archives-gziparchive/#method-decompress-io-stream-io-stream-officeimo-archives-archivereadoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

[ArchiveReadOptions.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/d3c8d171d65ad59765435adc21f3a6b1d99dd3bb/OfficeIMO.Archives/ArchiveReadOptions.cs#L13)

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

[ArchiveReadOptions.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/d3c8d171d65ad59765435adc21f3a6b1d99dd3bb/OfficeIMO.Archives/ArchiveReadOptions.cs#L7)

Optional cumulative budget shared with related and nested archive operations.

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

[ArchiveReadOptions.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/d3c8d171d65ad59765435adc21f3a6b1d99dd3bb/OfficeIMO.Archives/ArchiveReadOptions.cs#L10)

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 long MaxInputBytes { get; set; }` [#](#property-maxinputbytes)

[ArchiveReadOptions.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/d3c8d171d65ad59765435adc21f3a6b1d99dd3bb/OfficeIMO.Archives/ArchiveReadOptions.cs#L13)

Maximum compressed input bytes, including unselected members. Defaults to 64 MiB. Stream snapshots are also bounded by Int32.MaxValue.

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

[ArchiveReadOptions.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/d3c8d171d65ad59765435adc21f3a6b1d99dd3bb/OfficeIMO.Archives/ArchiveReadOptions.cs#L15)

Maximum physical members, including directories and unselected files.

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

[ArchiveReadOptions.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/d3c8d171d65ad59765435adc21f3a6b1d99dd3bb/OfficeIMO.Archives/ArchiveReadOptions.cs#L17)

Maximum declared size of any member, selected or not. Defaults to 16 MiB. Selected in-memory members are also bounded by Int32.MaxValue.

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

[ArchiveReadOptions.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/d3c8d171d65ad59765435adc21f3a6b1d99dd3bb/OfficeIMO.Archives/ArchiveReadOptions.cs#L19)

Maximum aggregate selected content retained in the result. Defaults to 64 MiB.

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

[ArchiveReadOptions.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/d3c8d171d65ad59765435adc21f3a6b1d99dd3bb/OfficeIMO.Archives/ArchiveReadOptions.cs#L21)

Maximum member path segments.

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

[ArchiveReadOptions.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/d3c8d171d65ad59765435adc21f3a6b1d99dd3bb/OfficeIMO.Archives/ArchiveReadOptions.cs#L23)

Maximum characters in an authored relative member path.

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

[ArchiveReadOptions.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/d3c8d171d65ad59765435adc21f3a6b1d99dd3bb/OfficeIMO.Archives/ArchiveReadOptions.cs#L26)

Optional selector receiving each normalized relative file path once. All members still undergo metadata, path and collision validation.

<!-- PowerForge markdown artifact sha256:028A5B5CCA81A029E8866E04CA6B2709F0CB5C575AE7DCC1B190ECB29F4173C2 -->
