![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Deployment Tools Foundation
Unpack Method (streamContext, fileFilter)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Compression ► CompressionEngine ► Unpack(IUnpackStreamContext, Predicate<(Of <<'(String>)>>))
Extracts files from an archive or archive chain.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ | F# |
public abstract void Unpack( IUnpackStreamContext streamContext, Predicate<string> fileFilter )
Public MustOverride Sub Unpack ( streamContext As IUnpackStreamContext, fileFilter As Predicate(Of String) )
public: virtual void Unpack( IUnpackStreamContext^ streamContext, Predicate<String^>^ fileFilter ) abstract
abstract Unpack : streamContext : IUnpackStreamContext * fileFilter : Predicate<string> -> unit
![](collapse_all.gif)
- streamContext (IUnpackStreamContext)
- A context interface to handle opening and closing of archive and file streams.
![](collapse_all.gif)
The fileFilter predicate takes an internal file
path and returns true to include the file or false to exclude it.
![](collapse_all.gif)
Exception | Condition |
---|---|
ArchiveException | The archive provided
by the stream context is not valid. |
Assembly: Microsoft.Deployment.Compression (Module: Microsoft.Deployment.Compression.dll) Version: 3.0.0.0 (3.11.1.2318)