ZipFile.FindEntry Method

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

ZipFile.FindEntry Method 

Return the index of the entry with a matching name

public int FindEntry(
   string name,
   bool ignoreCase
);

Parameters

name
Entry name to find
ignoreCase
If true the comparison is case insensitive

Return Value

The index position of the matching entry or -1 if not found

Exceptions

Exception Type Condition
InvalidOperationException The Zip file has been closed.

See Also

ZipFile Class | ICSharpCode.SharpZipLib.Zip Namespace