ZipArchive.GetItems Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9119)
GetItems()
Gets the collection of all archive items stored within the ZIP archive.
Declaration
public ZipItemCollection GetItems()
Returns
Type | Description |
---|---|
Zip |
The collection of all items stored within the ZIP archive. |
Exceptions
Type | Condition |
---|---|
Object |
Archive was already disposed. |
Zip |
Cannot perform the requested operation, or the operation was canceled
(see Problem |
GetItems(String, TraversalMode)
Gets the collection of archive items stored within the ZIP archive matching the specified path or mask using the specified traversal mode.
Declaration
public ZipItemCollection GetItems(string archivePathOrMask, TraversalMode mode)
Parameters
Type | Name | Description |
---|---|---|
String | archivePathOrMask | Path (with or without a mask) to an archive item(s) or null (Nothing in Visual Basic). |
Traversal |
mode | Traversal mode. |
Returns
Type | Description |
---|---|
Zip |
The collection of items stored within the ZIP archive. |
Exceptions
Type | Condition |
---|---|
Argument |
The specified path is null. |
Argument |
The specified path is empty. -or- Illegal use of wildcards in path. -or- Ambiguous usage of path and mode. |
Argument |
The |
Object |
Archive was already disposed. |
Zip |
Cannot perform the requested operation, or the operation was canceled
(see Problem |
GetItems(String, TraversalMode, ArchiveItemTypes)
Gets the collection of archive items stored within the ZIP archive matching the specified path or mask and type using the specified traversal mode.
Declaration
public ZipItemCollection GetItems(string archivePathOrMask, TraversalMode mode, ArchiveItemTypes types)
Parameters
Type | Name | Description |
---|---|---|
String | archivePathOrMask | Path (with or without a mask) to an archive item(s) or null (Nothing in Visual Basic). |
Traversal |
mode | Traversal mode. |
Archive |
types | Specifies which types should be included in the collection. |
Returns
Type | Description |
---|---|
Zip |
The collection of archive items stored within the ZIP archive. |
Exceptions
Type | Condition |
---|---|
Argument |
The specified path is null. |
Argument |
The specified path is empty. -or- Illegal use of wildcards in path. -or- Ambiguous usage of path and mode. |
Argument |
The |
Object |
Archive was already disposed. |
Zip |
Cannot perform the requested operation, or the operation was canceled
(see Problem |
GetItems(FileSet)
Gets the collection of archive items stored within the ZIP archive matching the specified set
.
Declaration
public ZipItemCollection GetItems(FileSet set)
Parameters
Returns
Type | Description |
---|---|
Zip |
The collection of archive items stored within the ZIP archive. |
Exceptions
Type | Condition |
---|---|
Argument |
The specified set is null. |
Object |
Archive was already disposed. |
Zip |
Cannot perform the requested operation, or the operation was canceled
(see Problem |
GetItems(FileSet, ArchiveItemTypes)
Gets the collection of archive items stored within the ZIP archive matching the specified set
.
Declaration
public ZipItemCollection GetItems(FileSet set, ArchiveItemTypes types)
Parameters
Type | Name | Description |
---|---|---|
File |
set | A File |
Archive |
types | Specifies which types should be included in the collection. |
Returns
Type | Description |
---|---|
Zip |
The collection of archive items stored within the ZIP archive. |
Exceptions
Type | Condition |
---|---|
Argument |
The specified set is null. |
Argument |
The |
Object |
Archive was already disposed. |
Zip |
Cannot perform the requested operation, or the operation was canceled
(see Problem |