IRONSOFTWAREHOME
View Archive Entries
using IronZip;
using System;
using System.Collections.Generic;

// Open existing ZIP
using (var archive = new IronZipArchive("existing.zip"))
{
    // Get Entries list
    List<Entry> entries = archive.Entries();
    foreach (Entry entry in entries)
    {
        Console.WriteLine(entry.Name);
          }
}
Imports IronZip
Imports System
Imports System.Collections.Generic

' Open existing ZIP
Using archive As New IronZipArchive("existing.zip")
    ' Get Entries list
    Dim entries As List(Of Entry) = archive.Entries()
    For Each entry As Entry In entries
        Console.WriteLine(entry.Name)
    Next
End Using
NuGet Download
PM > Install-Package IronZip
View Archive Entries

View Archive Entries

When extracting archives, developers sometimes want to do a quick inspection to confirm whether an entry exists within the archive, as extracting an archive can be costly at times. IronZIP lets you view the archive entries within the archive without extracting them first, saving you time and allowing you to inspect and verify files quickly before extracting them.

Within this example, we'll quickly go through an example of utilizing the Entry class within IronZipArchive to obtain the list of entries within the archive and print out the names of the entries for inspection.

Importing Existing Archive

We first import the namespace IronZIP. Afterwards, we initialize a new IronZipArchive with the path to the ZIP Archive as the parameter to load the archive.

Viewing The Contents of the Archive

After importing the ZIP archive, we can utilize the Entries() method of IronZipArchive to obtain the list of entries within the archive. The Entries() method within the IronZipArchive returns a <List> of Entry within the archive.

Entry Class

The Entry class contains several properties such as the Name, Size, Version, and other properties such as the Comment and the encryption method used to create that entry. In this example, we utilize a for loop to loop over the number of entries within the list to print out all the names of the entries within the archive, showcasing the versatility of looking through the entries without extracting them. For a complete list of properties available for the class Entry, please refer here.

Learn to Create, Read & Extract ZIP Files with IronZIP
View on GitHub

Ready to Get Started?

Nuget Downloads 23,714Version:2026.10just released

Key in blue circle

Get your free 30-day Trial Key instantly

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronZIP
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get a Quote, No Obligation
Your details will always be kept confidential.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Trusted by Millions of Engineers Worldwide
Get your free 30-day Trial Key instantly.
No credit card or account creation required
C# NuGet Library for PDF
Install with NuGet

Version: 2026.10

PM > Install-Package IronZip
nuget.org/packages/IronZip/
  1. In Solution Explorer, right-click References, Manage NuGet Packages
  2. Select Browse and search "IronZip"
  3. Select the package and install
C# PDF DLL
Download DLL

Version: 2026.10

  1. Download and unzip IronZIP to a location such as ~/Libs within your Solution directory
  2. In Visual Studio Solution Explorer, right click References. Select Browse, "IronZip.dll"

Licenses from $999