Extracts the current ZipItem into the specified local directory using the specified arguments.
            
    Namespace: 
   Rebex.IO.Compression
    Assembly:
   Rebex.Zip (in Rebex.Zip.dll)
 Syntax
Syntax
| Visual Basic | 
|---|
| Public Overrides Function ExtractToDirectory ( _ targetDirectoryPath As String, _ mode As TraversalMode, _ defaultActionOnExistingFiles As ActionOnExistingFiles _ ) As ArchiveOperationResult | 
| C# | 
|---|
| public override ArchiveOperationResult ExtractToDirectory( string targetDirectoryPath, TraversalMode mode, ActionOnExistingFiles defaultActionOnExistingFiles ) | 
Parameters
- targetDirectoryPath
- Type: System..::..String
 Path to an existing directory into which to extract the item.
- mode
- Type: Rebex.IO..::..TraversalMode
 Traversal mode.
- defaultActionOnExistingFiles
- Type: Rebex.IO..::..ActionOnExistingFiles
 Specifies default behavior for files that already exist at 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- The system could not retrieve the absolute path. | 
| System..::..ArgumentOutOfRangeException | The mode or defaultActionOnExistingFiles specified an invalid value. | 
| System..::..InvalidOperationException | The item is already deleted. | 
| 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). | 
 
     
     
     
     
    