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


IZipArchive.CreateArchive 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.CreateArchive Method
ArcGIS Developer Help

IZipArchive.CreateArchive Method

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

Product Availability

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

Description

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.

See Also

IZipArchive Interface