SelectEntries Method (zip, directoryPathInArchive)

DotNetZip

Ionic Zip Library v1.9.1.6 SelectEntries Method (zip, directoryPathInArchive)
ReferenceIonicFileSelectorSelectEntries(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
)
Parameters
zip (ZipFile)
The ZipFile from which to retrieve entries.
directoryPathInArchive (String)
the directory in the archive from which to select entries. If null, then all directories in the archive are used.
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.

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)