Unpack Method (streamContext, fileFilter)

DTF API

Copy image CopyHover image
Deployment Tools Foundation Unpack Method (streamContext, fileFilter)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.Compression.CabCabEngineUnpack(IUnpackStreamContext, Predicate<(Of <<'(String>)>>))
Extracts files from a cabinet or cabinet chain.
Declaration Syntax
C# Visual Basic Visual C++ F#
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
abstract Unpack : 
        streamContext : IUnpackStreamContext * 
        fileFilter : Predicate<string> -> unit 
override Unpack : 
        streamContext : IUnpackStreamContext * 
        fileFilter : Predicate<string> -> unit 
Parameters
streamContext (IUnpackStreamContext)
A context interface to handle opening and closing of cabinet and file streams.
fileFilter (Predicate<(Of <(<'String>)>)>)
An optional predicate that can determine which files to process.
Remarks
The fileFilter predicate takes an internal file path and returns true to include the file or false to exclude it.
Exceptions
Exception Condition
ArchiveException The cabinet provided by the stream context is not valid.

Assembly: Microsoft.Deployment.Compression.Cab (Module: Microsoft.Deployment.Compression.Cab.dll) Version: 3.0.0.0 (3.11.1.2318)