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

ExceptionCondition
System..::..ArgumentNullExceptionThe specified output stream is null.
System..::..InvalidOperationExceptionThe output stream is not writable. -or- The item is not a file. -or- The item is already deleted.
System..::..ObjectDisposedExceptionArchive was already disposed.
System.IO..::..IOExceptionAn I/O error occurred.
Rebex.IO.Compression..::..ZipExceptionCannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information).

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also