GetFiles Method (streamContext, fileFilter)

DTF API

Copy image CopyHover image
Deployment Tools Foundation GetFiles Method (streamContext, fileFilter)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.CompressionCompressionEngineGetFiles(IUnpackStreamContext, Predicate<(Of <<'(String>)>>))
Gets the list of files in an archive or archive chain.
Declaration Syntax
C# Visual Basic Visual C++ F#
public IList<string> GetFiles(
	IUnpackStreamContext streamContext,
	Predicate<string> fileFilter
)
Public Function GetFiles ( 
	streamContext As IUnpackStreamContext,
	fileFilter As Predicate(Of String)
) As IList(Of String)
public:
IList<String^>^ GetFiles(
	IUnpackStreamContext^ streamContext, 
	Predicate<String^>^ fileFilter
)
member GetFiles : 
        streamContext : IUnpackStreamContext * 
        fileFilter : Predicate<string> -> IList<string> 
Parameters
streamContext (IUnpackStreamContext)
A context interface to handle opening and closing of archive and file streams.
fileFilter (Predicate<(Of <(<'String>)>)>)
A predicate that can determine which files to process, optional.
Return Value
IList<(Of <(<'String>)>)>
An array containing the names of all files contained in the archive or archive chain.
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 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)