ArjArchive.ExtractToDirectory
Contents
[
Hide
]ArjArchive.ExtractToDirectory method
Extracts all entries to the specified directory.
public void ExtractToDirectory(string destinationDirectory)
| Parameter | Type | Description |
|---|---|---|
| destinationDirectory | String | The directory to extract the entries to. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when the destinationDirectory is null. |
| ObjectDisposedException | Archive has been disposed and cannot be used. |
| OperationCanceledException | In .NET Framework 4.0 and above: Thrown when the extraction is canceled via the provided cancellation token. |
| InvalidDataException | Checksum mismatch for headers or data. - or - Archive is corrupted. |
| NotImplementedException | Entry compressed with method 4. |
Examples
The following example shows how to extract all entries to a directory:
using (var archive = new ArjArchive(File.OpenRead("archive.arj")))
{
archive.ExtractToDirectory("C:\\extracted");
}
See Also
- class ArjArchive
- namespace Aspose.Zip.Arj
- assembly Aspose.Zip