ZipArchiveEntry::Open Method ()
Opens the entry from the zip archive.
Assembly: System.IO.Compression (in System.IO.Compression.dll)
| Exception | Condition |
|---|---|
| IOException | The entry is already currently open for writing. -or- The entry has been deleted from the archive. -or- The archive for this entry was opened with the Create mode, and this entry has already been written to. |
| InvalidDataException | The entry is either missing from the archive or is corrupt and cannot be read. -or- The entry has been compressed by using a compression method that is not supported. |
| ObjectDisposedException | The zip archive for this entry has been disposed. |
You use this method to access the stream for an entry in a zip archive. After retrieving the stream, you can read from or write to the stream. When you write to the stream, the modifications you make to the entry will appear in the zip archive.
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1