Extracts specified archive item(s) into the specified local directory.
            
    Namespace: 
   Rebex.IO.Compression
    Assembly:
   Rebex.Zip (in Rebex.Zip.dll)
 Syntax
Syntax
| Visual Basic | 
|---|
| Public Function Extract ( _ archivePathOrMask As String, _ targetDirectoryPath As String, _ mode As TraversalMode, _ transferMethod As TransferMethod, _ defaultActionOnExistingFiles As ActionOnExistingFiles _ ) As ArchiveOperationResult | 
| C# | 
|---|
| public ArchiveOperationResult Extract( string archivePathOrMask, string targetDirectoryPath, TraversalMode mode, TransferMethod transferMethod, ActionOnExistingFiles defaultActionOnExistingFiles ) | 
Parameters
- archivePathOrMask
- Type: System..::..String
 Path (with or without a mask) to an archive item(s).
- targetDirectoryPath
- Type: System..::..String
 Path to an existing local directory to which to extract files.
- mode
- Type: Rebex.IO..::..TraversalMode
 Traversal mode.
- transferMethod
- Type: Rebex.IO..::..TransferMethod
 Specifies whether to copy or move source items.
- defaultActionOnExistingFiles
- Type: Rebex.IO..::..ActionOnExistingFiles
 Specifies the default behavior for files that already exists in the local directory.
Return Value
Operation result. Exceptions
Exceptions
| Exception | Condition | 
|---|---|
| System..::..ArgumentNullException | The specified path is null. | 
| System..::..ArgumentException | The specified path is empty or contains invalid characters. -or- Illegal use of wildcards in path. -or- Ambiguous usage of path and mode. -or- The system could not retrieve the absolute path. | 
| System..::..ArgumentOutOfRangeException | The mode or transferMethod or defaultActionOnExistingFiles specified an invalid value. | 
| System..::..ObjectDisposedException | Archive was already disposed. | 
| System..::..NotSupportedException | Path is in an invalid format. | 
| System.IO..::..PathTooLongException | targetDirectoryPath exceed the maximum length defined by system. | 
| System.Security..::..SecurityException | The caller does not have the required permissions. | 
| System..::..UnauthorizedAccessException | Access to the file is denied. | 
| System.IO..::..IOException | An I/O error occurred. | 
| Rebex.IO.Compression..::..ZipException | Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information). | 
 
     
     
     
     
    