ArjArchive.ExtractToDirectory

ArjArchive.ExtractToDirectory method

Extracts all entries to the specified directory.

public void ExtractToDirectory(string destinationDirectory)
ParameterTypeDescription
destinationDirectoryStringThe directory to extract the entries to.

Exceptions

exceptioncondition
ArgumentNullExceptionThrown when the destinationDirectory is null.
ObjectDisposedExceptionArchive has been disposed and cannot be used.
OperationCanceledExceptionIn .NET Framework 4.0 and above: Thrown when the extraction is canceled via the provided cancellation token.

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