IsoArchive.ExtractToDirectory

IsoArchive.ExtractToDirectory method

Extracts all entries to the specified directory.

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

Exceptions

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

Examples

The following example shows how to extract all entries to a directory:

using (var archive = new IsoArchive(File.OpenRead("archive.iso")))
{ 
   archive.ExtractToDirectory("C:\\extracted");
}

See Also