Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ArchiveExtractor

OfficeIMO.Archives

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

Extracts one managed archive container into a fresh directory without executing its contents.

Inheritance

  • object
  • ArchiveExtractor

Methods

public static ArchiveExtractionResult Extract(string packagePath, string destinationDirectory, ArchiveExtractionOptions? options = null, CancellationToken cancellationToken = default) #

Verifies and extracts selected files from a ZIP, CAB or ordinary MSI package. The destination must be absent or empty. A completed staging directory is published by a same-volume move.

Parameters

packagePath string required
destinationDirectory string required
options OfficeIMO.Archives.ArchiveExtractionOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Exceptions

  • OfficeInspectionResourceLimitException – A configured or fixed managed admission ceiling is exhausted.
  • InvalidDataException – The input is corrupt, unsafe or conflicting.
  • NotSupportedException – The input uses an unsupported format or extraction feature.
  • IOException – The destination is occupied, contains links, or cannot be published.