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


IZipArchive.OpenArchive Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IZ > IZipArchive Interface > IZipArchive.OpenArchive Method
ArcGIS Developer Help

IZipArchive.OpenArchive Method

Opens an existing archive.

[Visual Basic .NET]
Public Sub OpenArchive ( _
    ByVal archiveName As String _
)
[C#]
public void OpenArchive (
    string archiveName
);
[C++]
HRESULT OpenArchive(
  BSTR archiveName
);
[C++]
Parameters
archiveName [in]

archiveName is a parameter of type BSTR

Product Availability

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

Description

Opens an existing zip archive with the specified file name.

Ensure the zip archive you want to open is not empty, as OpenArchive method would fail if the archive doesn't contain anything in it.

See Also

IZipArchive Interface