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.
Declaration Syntax
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 )
Parameters
- 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.
Remarks
If any extracted files already exist on disk, they will be overwritten.
The destDirectory and destFileNames parameters cannot both be null.
Assembly: Microsoft.Deployment.Compression (Module: Microsoft.Deployment.Compression.dll) Version: 3.0.0.0 (3.9.1006.0)