This document is archived and information here might be outdated.  Recommended version.


IZipArchive.ExtractFile Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (System)  

IZipArchive.ExtractFile Method

Extracts a file from the archive to the output directory.

[Visual Basic .NET]
Public Sub ExtractFile ( _
    ByVal file As String, _
    ByVal outputDir As String _
)
[C#]
public void ExtractFile (
    string file,
    string outputDir
);
[C++]
HRESULT ExtractFile(
  BSTR file,
  BSTR outputDir
);
[C++]

Parameters file [in] file is a parameter of type BSTR outputDir [in] outputDir is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The ExtractFile method extracts the specified compressed file in the zip archive into the specified directory. Use the GetFileNames method to return an enumeration of files in the zip archive. Ensure the zip archive is open before using the ExtractFile method by using the OpenArchive method.

See Also

IZipArchive Interface