Ionic Zip Library v1.9.1.6
SelectEntries Method (zip, directoryPathInArchive)
Reference ► Ionic ► FileSelector ► SelectEntries(ZipFile, String)
Retrieve the ZipEntry items in the ZipFile that conform to the specified criteria.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public ICollection<ZipEntry> SelectEntries( ZipFile zip, string directoryPathInArchive )
Public Function SelectEntries ( _ zip As ZipFile, _ directoryPathInArchive As String _ ) As ICollection(Of ZipEntry)
public: ICollection<ZipEntry^>^ SelectEntries( ZipFile^ zip, String^ directoryPathInArchive )
Return Value
a collection of ZipEntry objects that conform to the criteria.
Remarks
This method applies the criteria set in the FileSelector instance (as described in the SelectionCriteria) to the specified ZipFile. Using this method, for example, you can retrieve all entries from the given ZipFile that have filenames ending in .txt.
Normally, applications would not call this method directly. This method is used by the ZipFile class.
This overload allows the selection of ZipEntry instances from the ZipFile to be restricted to entries contained within a particular directory in the ZipFile.
Using the appropriate SelectionCriteria, you can retrieve entries based on size, time, and attributes. See SelectionCriteria for a description of the syntax of the SelectionCriteria string.