This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IZ > IZipArchive Interface > IZipArchive.CreateArchive Method (ArcObjects .NET 10.4 SDK) |
Creates a new archive.
[Visual Basic .NET] Public Sub CreateArchive ( _ ByVal archiveName As String _ )
[C#] public void CreateArchive ( string archiveName );
[C++]
HRESULT CreateArchive(
BSTR archiveName
);
[C++]
Parameters archiveName [in] archiveName is a parameter of type BSTR
Creates a new zip archive with the specified file name. The file name must include the zip extension (*.zip).
If a zip archive with the specified file name already exists it will automatically be replaced with a new empty zip archive and the contents of the previous zip archive will be lost.