Deployment Tools Foundation
UnpackFiles Method (fileNames, destDirectory, destFileNames, progressHandler)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Compression ► ArchiveInfo ► UnpackFiles(IList<(Of <(String>)>), String, IList<(Of <(String>)>), EventHandler<(Of <(ArchiveProgressEventArgs>)>))
Extracts multiple files from the archive, optionally extracting
only newer files.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ |
public void UnpackFiles( IList<string> fileNames, string destDirectory, IList<string> destFileNames, EventHandler<ArchiveProgressEventArgs> progressHandler )
Public Sub UnpackFiles ( _ fileNames As IList(Of String), _ destDirectory As String, _ destFileNames As IList(Of String), _ progressHandler As EventHandler(Of ArchiveProgressEventArgs) _ )
public: void UnpackFiles( IList<String^>^ fileNames, String^ destDirectory, IList<String^>^ destFileNames, EventHandler<ArchiveProgressEventArgs^>^ progressHandler )
![](collapse_all.gif)
- fileNames (IList<(Of <(String>)>))
- The names of the files in the archive. Each name includes the internal path of the file, if any. File name matching is case-insensitive.
- destDirectory (String)
- This parameter may be null, but if specified it is the root directory for any relative paths in destFileNames.
- destFileNames (IList<(Of <(String>)>))
- The paths where the files are to be extracted on disk. If this parameter is null, the files will be extracted with the names from the archive.
- progressHandler (EventHandler<(Of <(ArchiveProgressEventArgs>)>))
- Handler for receiving progress information; this may be null if progress is not desired.
![](collapse_all.gif)
If any extracted files already exist on disk, they will be overwritten.
The destDirectory and destFileNames parameters cannot both be null.