Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ArchiveInspector

OfficeIMO.Archives

Namespace
OfficeIMO.Archives
Assembly
OfficeIMO.Archives
Source revision
f9d02fda5e27 with working tree changes
Modifiers
static

Creates passive ZIP/CAB/MSI inventories and bounded whole-member reads without filesystem extraction or installer execution.

Inheritance

  • object
  • ArchiveInspector

Methods

Open 2 overloads
public static ArchiveInspection Open(string packagePath, ArchiveInspectionOptions? options = null, CancellationToken cancellationToken = default) #

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

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

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

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.