This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IZ > IZipArchive Interface > IZipArchive.ExtractFile Method (ArcObjects .NET 10.4 SDK) |
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
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.