Deployment Tools Foundation
GetFiles Method (streamContext, fileFilter)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Compression ► CompressionEngine ► GetFiles(IUnpackStreamContext, Predicate<(Of <(String>)>))
Gets the list of files in an archive or archive chain.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ |
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 )
![](collapse_all.gif)
- streamContext (IUnpackStreamContext)
- A context interface to handle opening and closing of archive and file streams.
![](collapse_all.gif)
An array containing the names of all files contained in
the archive or archive chain.
![](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. |