Deployment Tools Foundation
PackFiles Method (sourceDirectory, sourceFileNames, fileNames)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Compression ► ArchiveInfo ► PackFiles(String, IList<(Of <(String>)>), IList<(Of <(String>)>))
Compresses files into the archive, specifying the names used to
store the files in the archive.
Declaration Syntax
Parameters
- sourceDirectory (String)
- This parameter may be null, but if specified it is the root directory for any relative paths in sourceFileNames.
Remarks
Uses maximum compression level.
Duplicate items in the fileNames array will cause an ArchiveException.