Class
ArchiveInspector
OfficeIMO.Archives
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
- options OfficeIMO.Archives.ArchiveInspectionOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
ArchiveInspectionExceptions
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
- options OfficeIMO.Archives.ArchiveInspectionOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
ArchiveInspectionExceptions
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.