GetFileInfo Method (streamContext, fileFilter)

Microsoft Deployment Tools

Deployment Tools Foundation GetFileInfo Method (streamContext, fileFilter)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.Compression.CabCabEngineGetFileInfo(IUnpackStreamContext, Predicate<(Of <(String>)>))
Gets information about files in a cabinet or cabinet chain.
Declaration Syntax
C# Visual Basic Visual C++
public override IList<ArchiveFileInfo> GetFileInfo(
	IUnpackStreamContext streamContext,
	Predicate<string> fileFilter
)
Public Overrides Function GetFileInfo ( _
	streamContext As IUnpackStreamContext, _
	fileFilter As Predicate(Of String) _
) As IList(Of ArchiveFileInfo)
public:
virtual IList<ArchiveFileInfo^>^ GetFileInfo(
	IUnpackStreamContext^ streamContext, 
	Predicate<String^>^ fileFilter
) override
Parameters
streamContext (IUnpackStreamContext)
A context interface to handle opening and closing of cabinet and file streams.
fileFilter (Predicate<(Of <(String>)>))
A predicate that can determine which files to process, optional.
Return Value
Information about files in the cabinet stream.
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) Version: 3.0.0.0 (3.5.1623.0)