Deployment Tools Foundation
Unpack Method (stream, path)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Compression ► CompressionEngine ► Unpack(Stream, String)
Reads a single file from an archive stream.
Declaration Syntax
Return Value
A stream for reading the extracted file, or null
if the file does not exist in the archive.
Remarks
The entire extracted file is cached in memory, so this
method requires enough free memory to hold the file.
Exceptions
Exception | Condition |
---|---|
ArchiveException | The stream is not a valid
archive. |