Gets the ZipItem object that represents the specified path.
Namespace:
Rebex.IO.Compression
Assembly:
Rebex.Zip (in Rebex.Zip.dll)
Syntax
Visual Basic |
---|
Public Function GetItem ( _ archivePath As String _ ) As ZipItem |
C# |
---|
public ZipItem GetItem( string archivePath ) |
Parameters
- archivePath
- Type: System..::..String
Path to an item within the ZIP archive.
Return Value
A ZipItem object or a null reference (Nothing in Visual Basic) if the path is not present in the ZIP archive.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | The specified path is null. |
System..::..ArgumentException | The specified path is empty. |
System..::..ObjectDisposedException | Archive was already disposed. |
Rebex.IO.Compression..::..ZipException | Cannot perform the requested operation (see ProblemType for detailed information). |