WimArchive.ExtractToDirectory

WimArchive.ExtractToDirectory method

Extracts the archive to the file by path.

public void ExtractToDirectory(string destinationDirectory)
ParameterTypeDescription
destinationDirectoryStringThe path to the directory to place the extracted files in.

Return Value

Info of extracted file.

Exceptions

exceptioncondition
ArgumentNullExceptionpath is null
PathTooLongExceptionThe specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters and file names must be less than 260 characters.
SecurityExceptionThe caller does not have the required permission to access existing directory.
NotSupportedExceptionIf directory does not exist, path contains a colon character (:) that is not part of a drive label (“C:").
ArgumentExceptionpath is a zero-length string, contains only white space, or contains one or more invalid characters. You can query for invalid characters by using the System.IO.Path.GetInvalidPathChars method. -or- path is prefixed with, or contains, only a colon character (:).
IOExceptionThe directory specified by path is a file. -or- The network name is not known.
InvalidDataExceptionArchive is corrupted.

See Also