Extracts specified archive item(s) into the specified local directory.
Namespace:
Rebex.IO.CompressionAssembly: Rebex.Zip (in Rebex.Zip.dll) Version: 1.0.4086.0
Syntax
| C# |
|---|
public ArchiveOperationResult Extract( string archivePathOrMask, string targetDirectoryPath ) |
| Visual Basic (Declaration) |
|---|
Public Function Extract ( _ archivePathOrMask As String, _ targetDirectoryPath As String _ ) As ArchiveOperationResult |
| Visual C++ |
|---|
public: ArchiveOperationResult^ Extract( String^ archivePathOrMask, String^ targetDirectoryPath ) |
Parameters
- archivePathOrMask
- Type: System..::.String
Path (with or without a mask) to an archive item(s).
- targetDirectoryPath
- Type: System..::.String
Path to an existing local directory to which to extract extract files.
Return Value
Operation result.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | 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..::.InvalidOperationException | Illegal use of wildcards in 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 sestem. |
| 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 occured. |
| Rebex.IO.Compression..::.ZipException | Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information). |