Export (0) Print
Expand All

ZipArchive.Entries Property

.NET Framework 4.6 and 4.5

Gets the collection of entries that are currently in the zip archive.

Namespace:  System.IO.Compression
Assembly:  System.IO.Compression (in System.IO.Compression.dll)

member Entries : ReadOnlyCollection<ZipArchiveEntry> with get

Property Value

Type: System.Collections.ObjectModel.ReadOnlyCollection(ZipArchiveEntry)
The collection of entries that are currently in the zip archive.

ExceptionCondition
NotSupportedException

The zip archive does not support reading.

ObjectDisposedException

The zip archive has been disposed.

InvalidDataException

The zip archive is corrupt, and its entries cannot be retrieved.

Use the Entries property to retrieve the entire collection of entries. Use the GetEntry method to retrieve a single entry by name.

The following example shows how to open a zip archive and iterate through the collection of entries.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1
Show:
© 2015 Microsoft