![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Deployment Tools Foundation
PackFileSet Method (sourceDirectory, fileNames, compLevel, progressHandler)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Compression ► ArchiveInfo ► PackFileSet(String, IDictionary<(Of <<'(String, String>)>>), CompressionLevel, EventHandler<(Of <<'(ArchiveProgressEventArgs>)>>))
Compresses files into the archive, specifying the names used to
store the files in the archive.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ | F# |
public void PackFileSet( string sourceDirectory, IDictionary<string, string> fileNames, CompressionLevel compLevel, EventHandler<ArchiveProgressEventArgs> progressHandler )
Public Sub PackFileSet ( sourceDirectory As String, fileNames As IDictionary(Of String, String), compLevel As CompressionLevel, progressHandler As EventHandler(Of ArchiveProgressEventArgs) )
public: void PackFileSet( String^ sourceDirectory, IDictionary<String^, String^>^ fileNames, CompressionLevel compLevel, EventHandler<ArchiveProgressEventArgs^>^ progressHandler )
member PackFileSet : sourceDirectory : string * fileNames : IDictionary<string, string> * compLevel : CompressionLevel * progressHandler : EventHandler<ArchiveProgressEventArgs> -> unit
![](collapse_all.gif)
- sourceDirectory (String)
- This parameter may be null, but if specified it is the root directory for any relative paths in fileNames.
- fileNames (IDictionary<(Of <(<'String, String>)>)>)
- A mapping from internal file paths to external file paths.
- compLevel (CompressionLevel)
- The compression level used when creating the archive.
- progressHandler (EventHandler<(Of <(<'ArchiveProgressEventArgs>)>)>)
- Handler for receiving progress information; this may be null if progress is not desired.
Assembly: Microsoft.Deployment.Compression (Module: Microsoft.Deployment.Compression.dll) Version: 3.0.0.0 (3.11.1.2318)