Versions

[{“Name”:“4.5”,“GroupName”:”.NET”},{“Name”:“4.5.1”,“GroupName”:”.NET”},{“Name”:“4.5.2”,“GroupName”:”.NET”},{“Name”:“4.6”,“GroupName”:”.NET”},{“Name”:“4.6.1”,“GroupName”:”.NET”},{“Name”:“4.6.2”,“GroupName”:”.NET”},{“Name”:“4.7”,“GroupName”:”.NET”}]

Introduction

The ZipFile class lives in the System.IO.Compression namespace. It can be used to read from, and write to Zip files.

Remarks

Exception | Condition ————————— | —— ArgumentException | The stream has already been closed, or the capabilities of the stream does not match the mode (eg: trying to write to a read only stream) ArgumentNullException | input stream is null ArgumentOutOfRangeException | mode has an invalid value InvalidDataException | See list below

When a InvalidDataException is thrown, it can have 3 causes:

All information has been taken from this MSDN page