Deployment Tools Foundation
GetFileInfo Method (streamContext, fileFilter)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Compression ► CompressionEngine ► GetFileInfo(IUnpackStreamContext, Predicate<(Of <(String>)>))
Gets information about files in an archive or archive chain.

C# | Visual Basic | Visual C++ |
public abstract IList<ArchiveFileInfo> GetFileInfo( IUnpackStreamContext streamContext, Predicate<string> fileFilter )
Public MustOverride Function GetFileInfo ( _ streamContext As IUnpackStreamContext, _ fileFilter As Predicate(Of String) _ ) As IList(Of ArchiveFileInfo)
public: virtual IList<ArchiveFileInfo^>^ GetFileInfo( IUnpackStreamContext^ streamContext, Predicate<String^>^ fileFilter ) abstract

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

Information about files in the archive stream.

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

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