ExtractSelectedEntries Method (selectionCriteria)

DotNetZip

Ionic Zip Library v1.9.1.6 ExtractSelectedEntries Method (selectionCriteria)
ReferenceIonic.ZipZipFileExtractSelectedEntries(String)
Selects and Extracts a set of Entries from the ZipFile.
Declaration Syntax
C# Visual Basic Visual C++
public void ExtractSelectedEntries(
	string selectionCriteria
)
Public Sub ExtractSelectedEntries ( _
	selectionCriteria As String _
)
public:
void ExtractSelectedEntries(
	String^ selectionCriteria
)
Parameters
selectionCriteria (String)
the selection criteria for entries to extract.
Remarks

The entries are extracted into the current working directory.

If any of the files to be extracted already exist, then the action taken is as specified in the ExtractExistingFile property on the corresponding ZipEntry instance. By default, the action taken in this case is to throw an exception.

For information on the syntax of the selectionCriteria string, see AddSelectedFiles(String).

Examples
This example shows how extract all XML files modified after 15 January 2009.
CopyC#
using (ZipFile zip = ZipFile.Read(zipArchiveName))
{
  zip.ExtractSelectedEntries("name = *.xml  and  mtime > 2009-01-15");
}

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