Interface IZipArchive

Namespace
ESRI.ArcGIS.esriSystem
Assembly
ESRI.Server.System.dll

Provides access to methods and properties to create and manage zip archives.

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("55DF03AE-B4F8-4387-B8B5-6FB22B15DDAC")]
public interface IZipArchive

Methods

AddFile(string)

Compresses a file and adds it to the archive.

void AddFile(string inputFile)

Parameters

inputFile string

CloseArchive()

Closes the archive.

void CloseArchive()

CreateArchive(string)

Creates a new archive.

void CreateArchive(string archiveName)

Parameters

archiveName string

Extract(string)

Extracts all items in the archive to the output directory.

void Extract(string outputDir)

Parameters

outputDir string

ExtractFile(string, string)

Extracts a file from the archive to the output directory.

void ExtractFile(string file, string outputDir)

Parameters

file string
outputDir string

GetFileNames()

Obtains the list of files in the archive.

IEnumBSTR GetFileNames()

Returns

IEnumBSTR

OpenArchive(string)

Opens an existing archive.

void OpenArchive(string archiveName)

Parameters

archiveName string