Reading and writing Zip files

suggest change

Versions

ZipArchive and ZipFile were added in .NET Framework 4.5 and are covered here through 4.7.

Introduction

The ZipFile and ZipArchive types live in the System.IO.Compression namespace. ZipArchive is in System.IO.Compression.dll. ZipFile is in System.IO.Compression.FileSystem.dll.

Remarks

Exception Condition
ArgumentException The stream is already closed, or its capabilities do not match the mode (for example, writing to a read-only stream).
ArgumentNullException The input stream is null.
ArgumentOutOfRangeException mode has an invalid value.
InvalidDataException See the list below.

An InvalidDataException has one of three causes:

This exception list is taken from the ZipArchive documentation.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents