ZipArchive.GetItem Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9119)
GetItem(String)
Gets the ZipItem object that represents the specified path.
Declaration
public ZipItem GetItem(string archivePath)
Parameters
Type | Name | Description |
---|---|---|
String | archivePath | Path to an item within the ZIP archive. |
Returns
Type | Description |
---|---|
ZipItem | A ZipItem object or a null reference (Nothing in Visual Basic) if the path is not present in the ZIP archive. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The specified path is null. |
ArgumentException | The specified path is empty. |
ObjectDisposedException | Archive was already disposed. |
ZipException | Cannot perform the requested operation (see ProblemType for detailed information). |