Export (0) Print
Expand All

ZipFile.CreateFromDirectory Method

.NET Framework 4.5

Creates a zip archive that contains the files and directories from the specified directory.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  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.
Top
Show:
© 2014 Microsoft