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
C# | Visual Basic | Visual C++ |
public void PackFiles( string sourceDirectory, IList<string> sourceFileNames, IList<string> fileNames )
Public Sub PackFiles ( sourceDirectory As String, sourceFileNames As IList(Of String), fileNames As IList(Of String) )
public: void PackFiles( String^ sourceDirectory, IList<String^>^ sourceFileNames, IList<String^>^ fileNames )
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.
Assembly: Microsoft.Deployment.Compression (Module: Microsoft.Deployment.Compression.dll) Version: 3.0.0.0 (3.9.1006.0)