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.
ZipArchiveEntry::Length Property
.NET Framework (current version)
Gets the uncompressed size of the entry in the zip archive.
Assembly: System.IO.Compression (in System.IO.Compression.dll)
| Exception | Condition |
|---|---|
| InvalidOperationException | The value of the property is not available because the entry has been modified. |
The following example shows how to retrieve entries from a zip archive, and evaluate the properties of the entries. It uses the Name property to display the name of the entry, and the Length and CompressedLength properties to calculate how much the file was compressed.
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
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: