Extracts specified archive item(s) into the specified local directory.
Namespace:
Rebex.IO.Compression
Assembly:
Rebex.Zip (in Rebex.Zip.dll)
Syntax
Visual Basic |
---|
Public Function Extract ( _ set As FileSet, _ targetDirectoryPath As String _ ) As ArchiveOperationResult |
C# |
---|
public ArchiveOperationResult Extract( FileSet set, string targetDirectoryPath ) |
Parameters
- set
- Type: Rebex.IO..::..FileSet
A filtering set which specifies external (local) files and directories to be extracted.
- targetDirectoryPath
- Type: System..::..String
Path to an existing local directory to which to extract files.
Return Value
Operation result.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | set is null or the specified path is null. |
System..::..ArgumentException | The specified path is empty or contains invalid characters. -or- The system could not retrieve the absolute path. |
System..::..ObjectDisposedException | Archive was already disposed. |
System..::..NotSupportedException | Path is in an invalid format. |
System.IO..::..PathTooLongException | targetDirectoryPath exceed the maximum length defined by system. |
System.Security..::..SecurityException | The caller does not have the required permissions. |
System..::..UnauthorizedAccessException | Access to the file is denied. |
System.IO..::..IOException | An I/O error occurred. |
Rebex.IO.Compression..::..ZipException | Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information). |