Begins asynchronous ExtractFile operation.
Extracts the specified archive file item into a stream.
Namespace:
Rebex.IO.Compression
Assembly:
Rebex.Zip (in Rebex.Zip.dll)
Syntax
Visual Basic |
---|
Public Sub ExtractFileAsync ( _ archiveFilePath As String, _ outputStream As Stream _ ) |
C# |
---|
public void ExtractFileAsync( string archiveFilePath, Stream outputStream ) |
Parameters
- archiveFilePath
- Type: System..::..String
Path to an archive file to be extracted.
- outputStream
- Type: System.IO..::..Stream
Stream to write the extracted data to.
Remarks
Note that data will be written to the current output stream position.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | The specified path or output stream is null. |
System..::..ArgumentException | The specified path is empty. |
System..::..InvalidOperationException | The output stream is not writable. -or- The specified path is not a file. |
System..::..ObjectDisposedException | Archive was already disposed. |
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). |