ZipFile.GetEntry Method

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class 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

A clone of 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