# ArchiveInspector

Creates bounded archive inventories and verifies complete member reads without extracting files or executing installer actions.

Class 

`OfficeIMO.Archives`

**Namespace**

`OfficeIMO.Archives`

**Assembly**

`OfficeIMO.Archives`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[ArchiveInspector.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveInspector.cs#L14)

**Modifiers**

static

Creates bounded archive inventories and verifies complete member reads without extracting files or executing installer actions.

## Inheritance

- object
- ArchiveInspector

Filter members 

Show inherited

## Methods

Open 2 overloads

`public static ArchiveInspection Open(string packagePath, ArchiveInspectionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-open-string-officeimo-archives-archiveinspectionoptions-threading-cancellationtoken)

[ArchiveInspector.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/ArchiveInspector.cs#L14)

Snapshots one package and indexes its authored members without decoding their payloads. ZIP input above 64 MiB uses private temporary storage.

Parameters

**packagePath string required**

**options OfficeIMO.Archives.ArchiveInspectionOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`ArchiveInspection`

Exceptions

- `OfficeInspectionResourceLimitException` – A configured or fixed managed admission ceiling is exhausted.
- `InvalidDataException` – The input is malformed or inconsistent.
- `NotSupportedException` – The input uses an unsupported container or metadata profile.

`public static ArchiveInspection Open(Stream source, ArchiveInspectionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-open-io-stream-officeimo-archives-archiveinspectionoptions-threading-cancellationtoken)

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

Snapshots a readable seekable stream from its beginning, restores its original position on success or failure, and leaves it open. Nonseekable streams are consumed from their current position through EOF under the input limit. Later reads use the immutable snapshot and their own cancellation tokens.

Parameters

**source System.IO.Stream required**

**options OfficeIMO.Archives.ArchiveInspectionOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`ArchiveInspection`

Exceptions

- `OfficeInspectionResourceLimitException` – A configured or fixed managed admission ceiling is exhausted.
- `InvalidDataException` – The input is malformed or inconsistent.
- `NotSupportedException` – The input uses an unsupported container or metadata profile.

## 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?`

<!-- PowerForge markdown artifact sha256:25E97BE5FA46DD0B7B133D2F623C8B33F081B2571BAABB97F85D859FBA2C05EC -->
