Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ZipArchive::Entries Property

.NET Framework (current version)
 

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)

public:
property ReadOnlyCollection<ZipArchiveEntry^>^ Entries {
	ReadOnlyCollection<ZipArchiveEntry^>^ get();
}

Property Value

Type: System.Collections.ObjectModel::ReadOnlyCollection<ZipArchiveEntry^>^

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

Exception Condition
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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show:
© 2017 Microsoft