Gets the ZipItem object that represents the specified path.
Namespace:
Rebex.IO.Compression
Assembly:
Rebex.Zip (in Rebex.Zip.dll)
Syntax
Visual Basic |
---|
Public ReadOnly Default Property Item ( _ archivePath As String _ ) As ZipItem Get |
C# |
---|
public ZipItem this[ string archivePath ] { get; } |
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). |