Begins asynchronous ExtractFile operation. Extracts the specified archive file item into a local file.

Namespace:  Rebex.IO.Compression
Assembly:  Rebex.Zip (in Rebex.Zip.dll)

Syntax

Visual Basic
Public Sub ExtractFileAsync ( _
	archiveFilePath As String, _
	targetPath As String, _
	defaultActionOnExistingFiles As ActionOnExistingFiles _
)
C#
public void ExtractFileAsync(
	string archiveFilePath,
	string targetPath,
	ActionOnExistingFiles defaultActionOnExistingFiles
)

Parameters

archiveFilePath
Type: System..::..String
Path to an archive file to be extracted.
targetPath
Type: System..::..String
Path to a (non-existing) local file or path to a directory ending with directory separator (typically '\').
defaultActionOnExistingFiles
Type: Rebex.IO..::..ActionOnExistingFiles
Specifies the default behavior for files that already exists in the local directory.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThe specified path is null.
System..::..ArgumentExceptionThe specified path is empty or contains invalid characters. -or- The system could not retrieve the absolute path.
System..::..InvalidOperationExceptionThe specified path is not a file.
System..::..ObjectDisposedExceptionArchive was already disposed.
System..::..NotSupportedExceptionPath is in an invalid format.
System.IO..::..PathTooLongExceptiontargetPath exceed the maximum length defined by system.
System.IO..::..DirectoryNotFoundExceptionPart of the target path was not found.
System.Security..::..SecurityExceptionThe caller does not have the required permissions.
System..::..UnauthorizedAccessExceptionAccess to the file is denied.
System.IO..::..IOExceptionAn I/O error occurred.
Rebex.IO.Compression..::..ZipExceptionCannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information).

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also