

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.

C# | Visual Basic | Visual C++ |
public Stream Unpack( Stream stream, string path )
Public Function Unpack ( stream As Stream, path As String ) As Stream
public: Stream^ Unpack( Stream^ stream, String^ path )

Stream
A stream for reading the extracted file, or null if the file does not exist in the archive.
A stream for reading the extracted file, or null if the file does not exist in the archive.

The entire extracted file is cached in memory, so this
method requires enough free memory to hold the file.

Exception | Condition |
---|---|
ArchiveException | The stream is not a valid
archive. |
Assembly: Microsoft.Deployment.Compression (Module: Microsoft.Deployment.Compression.dll) Version: 3.0.0.0 (3.9.1006.0)