Pack Method (sourceDirectory)

Microsoft Deployment Tools

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++
public void Pack(
	string sourceDirectory
)
Public Sub Pack ( _
	sourceDirectory As String _
)
public:
void Pack(
	String^ sourceDirectory
)
Parameters
sourceDirectory (String)
The directory containing the files to be included.
Remarks
Uses maximum compression level.

Assembly: Microsoft.Deployment.Compression (Module: Microsoft.Deployment.Compression) Version: 3.0.0.0 (3.5.1623.0)