ZipFile.GetEntry Method

SharpZip Compression Library

SharpZip Compression Library

ZipFile.GetEntry Method 

Searches for a zip entry in this archive with the given name. String comparisons are case insensitive

public ZipEntry GetEntry(
   string name
);

Parameters

name
The name to find. May contain directory components separated by slashes ('/').

Return Value

The zip entry, or null if no entry with that name exists.

Exceptions

Exception Type Condition
InvalidOperationException The Zip file has been closed.

See Also

ZipFile Class | ICSharpCode.SharpZipLib.Zip Namespace