Deployment Tools Foundation
Unpack Method (streamContext, fileFilter)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Compression.Cab ► CabEngine ► Unpack(IUnpackStreamContext, Predicate<(Of <(String>)>))
Extracts files from a cabinet or cabinet chain.

C# | Visual Basic | Visual C++ |
public override void Unpack( IUnpackStreamContext streamContext, Predicate<string> fileFilter )
Public Overrides Sub Unpack ( _ streamContext As IUnpackStreamContext, _ fileFilter As Predicate(Of String) _ )
public: virtual void Unpack( IUnpackStreamContext^ streamContext, Predicate<String^>^ fileFilter ) override

- streamContext (IUnpackStreamContext)
- A context interface to handle opening and closing of cabinet and file streams.

The fileFilter predicate takes an internal file
path and returns true to include the file or false to exclude it.

Exception | Condition |
---|---|
ArchiveException | The cabinet provided
by the stream context is not valid. |