Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

ArchiveInspector

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

Creates passive 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) #
Returns: ArchiveInspection

Snapshots one package into bounded memory and indexes its authored members without decoding their payloads.

Parameters

packagePath System.String requiredposition: 0
options OfficeIMO.Archives.ArchiveInspectionOptions? = null optionalposition: 1
cancellationToken System.Threading.CancellationToken = default optionalposition: 2

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) #
Returns: ArchiveInspection

Snapshots a readable seekable stream from its beginning, restores its original position on success or failure, and leaves it open. Later reads use the immutable snapshot and their own cancellation tokens.

Parameters

source System.IO.Stream requiredposition: 0
options OfficeIMO.Archives.ArchiveInspectionOptions? = null optionalposition: 1
cancellationToken System.Threading.CancellationToken = default optionalposition: 2

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.