[C#]
// Create a ZipArchive object to access the zipfile.
ZipArchive zip = new ZipArchive(zipFilename);
// Obtain a flat array of all the files contained in the zip file and its subfolders.
ZipFile[] files = zip.GetFiles(true, fileMask);
// Iterate on the returned array of AbstractFile objects, and print the full name
// of each file.
foreach (ZipFile file in files)
Console.WriteLine(file.FullName);
[VB.NET]
' Create a ZipArchive object to access the zipfile.
Dim zip As New ZipArchive(zipFilename)
' Obtain a flat array of all the files contained in the zip file and its subfolders.
Dim files As ZipFile() = zip.GetFiles(True, fileMask)
' Iterate on the returned array of AbstractFile objects, and print the full name
' of each file.
For Each file As ZipFile In files
Console.WriteLine(file.FullName)
Next