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 )
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.