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