Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

ZipArchive.ExtractAll Method

Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9147)

ExtractAll(String)

Extracts the whole content of the ZIP archive into the specified local directory.

Declaration
public ArchiveOperationResult ExtractAll(string targetDirectoryPath)
Parameters
Type Name Description
String targetDirectoryPath

Path to an existing local directory to which to extract the ZIP archive.

Returns
Type Description
ArchiveOperationResult

Operation result.

Exceptions
Type Condition
ArgumentNullException

The specified path is null.

ArgumentException

The specified path is empty or contains invalid characters. -or- The system could not retrieve the absolute path.

ObjectDisposedException

Archive was already disposed.

NotSupportedException

Path is in an invalid format.

PathTooLongException

targetDirectoryPath exceed the maximum length defined by system.

SecurityException

The caller does not have the required permissions.

UnauthorizedAccessException

Access to the file is denied.

IOException

An I/O error occurred.

ZipException

Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information).

ExtractAll(String, ActionOnExistingFiles)

Extracts the whole content of the ZIP archive into the specified local directory.

Declaration
public ArchiveOperationResult ExtractAll(string targetDirectoryPath, ActionOnExistingFiles defaultActionOnExistingFiles)
Parameters
Type Name Description
String targetDirectoryPath

Path to an existing local directory to which to extract the ZIP archive.

ActionOnExistingFiles defaultActionOnExistingFiles

Specifies the default behavior for files that already exists in the local directory.

Returns
Type Description
ArchiveOperationResult

Operation result.

Exceptions
Type Condition
ArgumentNullException

The specified path is null.

ArgumentException

The specified path is empty or contains invalid characters. -or- The system could not retrieve the absolute path.

ArgumentOutOfRangeException

The defaultActionOnExistingFiles specified an invalid value.

ObjectDisposedException

Archive was already disposed.

NotSupportedException

Path is in an invalid format.

PathTooLongException

targetDirectoryPath exceed the maximum length defined by system.

SecurityException

The caller does not have the required permissions.

UnauthorizedAccessException

Access to the file is denied.

IOException

An I/O error occurred.

ZipException

Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information).

ExtractAll(String, TransferMethod, ActionOnExistingFiles)

Extracts the whole content of the ZIP archive into the specified local directory.

Declaration
public ArchiveOperationResult ExtractAll(string targetDirectoryPath, TransferMethod transferMethod, ActionOnExistingFiles defaultActionOnExistingFiles)
Parameters
Type Name Description
String targetDirectoryPath

Path to an existing local directory to which to extract the ZIP archive.

TransferMethod transferMethod

Specifies whether to copy or move source items.

ActionOnExistingFiles defaultActionOnExistingFiles

Specifies the default behavior for files that already exists in the local directory.

Returns
Type Description
ArchiveOperationResult

Operation result.

Exceptions
Type Condition
ArgumentNullException

The specified path is null.

ArgumentException

The specified path is empty or contains invalid characters. -or- The system could not retrieve the absolute path.

ArgumentOutOfRangeException

The transferMethod or defaultActionOnExistingFiles specified an invalid value.

ObjectDisposedException

Archive was already disposed.

NotSupportedException

Path is in an invalid format.

PathTooLongException

targetDirectoryPath exceed the maximum length defined by system.

SecurityException

The caller does not have the required permissions.

UnauthorizedAccessException

Access to the file is denied.

IOException

An I/O error occurred.

ZipException

Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information).

ExtractAll(String, String)

Extracts the whole content of the specified ZIP archive into the specified local directory.

Declaration
public static ArchiveOperationResult ExtractAll(string zipFilePath, string targetDirectoryPath)
Parameters
Type Name Description
String zipFilePath

Path to a ZIP archive file.

String targetDirectoryPath

Path to an existing local directory to which to extract the ZIP archive.

Returns
Type Description
ArchiveOperationResult

Operation result.

ExtractAll(String, String, TransferMethod, ActionOnExistingFiles)

Extracts the whole content of the specified ZIP archive into the specified local directory.

Declaration
public static ArchiveOperationResult ExtractAll(string zipFilePath, string targetDirectoryPath, TransferMethod transferMethod, ActionOnExistingFiles defaultActionOnExistingFiles)
Parameters
Type Name Description
String zipFilePath

Path to a ZIP archive file.

String targetDirectoryPath

Path to an existing local directory to which to extract the ZIP archive.

TransferMethod transferMethod

Specifies whether to copy or move source items.

ActionOnExistingFiles defaultActionOnExistingFiles

Specifies the default behavior for files that already exists in the local directory.

Returns
Type Description
ArchiveOperationResult

Operation result.

In This Article
  • ExtractAll(String)
  • ExtractAll(String, ActionOnExistingFiles)
  • ExtractAll(String, TransferMethod, ActionOnExistingFiles)
  • ExtractAll(String, String)
  • ExtractAll(String, String, TransferMethod, ActionOnExistingFiles)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies