Export (0) Print
Expand All

ZipFile Methods

.NET Framework 4.5

The ZipFile type exposes the following members.

  Name Description
Public method Static member CreateFromDirectory(String, String) Creates a zip archive that contains the files and directories from the specified directory.
Public method Static member CreateFromDirectory(String, String, CompressionLevel, Boolean) Creates a zip archive that contains the files and directories from the specified directory, uses the specified compression level, and optionally includes the base directory.
Public method Static member CreateFromDirectory(String, String, CompressionLevel, Boolean, Encoding) Creates a zip archive that contains the files and directories from the specified directory, uses the specified compression level and character encoding for entry names, and optionally includes the base directory.
Public method Static member ExtractToDirectory(String, String) Extracts all the files in the specified zip archive to a directory on the file system.
Public method Static member ExtractToDirectory(String, String, Encoding) Extracts all the files in the specified zip archive to a directory on the file system and uses the specified character encoding for entry names.
Public method Static member Open(String, ZipArchiveMode) Opens a zip archive at the specified path and in the specified mode.
Public method Static member Open(String, ZipArchiveMode, Encoding) Opens a zip archive at the specified path, in the specified mode, and by using the specified character encoding for entry names.
Public method Static member OpenRead Opens a zip archive for reading at the specified path.
Top
Show:
© 2014 Microsoft