Gets the collection of archive items stored within the ZIP archive matching the specified path or mask using the specified traversal mode.

Namespace:  Rebex.IO.Compression
Assembly:  Rebex.Zip (in Rebex.Zip.dll)

Syntax

Visual Basic
Public Function GetItems ( _
	archivePathOrMask As String, _
	mode As TraversalMode _
) As ZipItemCollection
C#
public ZipItemCollection GetItems(
	string archivePathOrMask,
	TraversalMode mode
)

Parameters

archivePathOrMask
Type: System..::..String
Path (with or without a mask) to an archive item(s) or null (Nothing in Visual Basic).
mode
Type: Rebex.IO..::..TraversalMode
Traversal mode.

Return Value

The collection of items stored within the ZIP archive.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThe specified path is null.
System..::..ArgumentExceptionThe specified path is empty. -or- Illegal use of wildcards in path. -or- Ambiguous usage of path and mode.
System..::..ArgumentOutOfRangeExceptionThe mode specified an invalid value.
System..::..ObjectDisposedExceptionArchive was already disposed.
Rebex.IO.Compression..::..ZipExceptionCannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information).

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also