Extracts the current file item to the specified stream.
Namespace:
Rebex.IO.Compression
Assembly:
Rebex.Zip (in Rebex.Zip.dll)
Syntax
| Visual Basic |
|---|
Public Overrides Function ExtractToStream ( _ outputStream As Stream _ ) As ArchiveOperationResult |
| C# |
|---|
public override ArchiveOperationResult ExtractToStream( Stream outputStream ) |
Parameters
- outputStream
- Type: System.IO..::..Stream
Stream to write the extracted data to.
Return Value
Operation result.
Remarks
Note that data will be written to the current output stream position.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | The specified output stream is null. |
| System..::..InvalidOperationException | The output stream is not writable. -or- The item is not a file. -or- The item is already deleted. |
| 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). |