Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

ArchiveExtractor

Namespace OfficeIMO.Archives
Assembly OfficeIMO.Archives
Source revision a0f47aa4f111 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) #
Returns: ArchiveExtractionResult

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 System.String requiredposition: 0
destinationDirectory System.String requiredposition: 1
options OfficeIMO.Archives.ArchiveExtractionOptions? = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3

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.