Pack Method (sourceDirectory)

DTF API

Copy image CopyHover image
Deployment Tools Foundation Pack Method (sourceDirectory)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.CompressionArchiveInfoPack(String)
Compresses all files in a directory into the archive. Does not include subdirectories.
Declaration Syntax
C# Visual Basic Visual C++ F#
public void Pack(
	string sourceDirectory
)
Public Sub Pack ( 
	sourceDirectory As String
)
public:
void Pack(
	String^ sourceDirectory
)
member Pack : 
        sourceDirectory : string -> unit 
Parameters
sourceDirectory (String)
The directory containing the files to be included.
Remarks
Uses maximum compression level.

Assembly: Microsoft.Deployment.Compression (Module: Microsoft.Deployment.Compression.dll) Version: 3.0.0.0 (3.11.1.2318)