Pack Method (streamContext, files)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation Pack Method (streamContext, files)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.CompressionCompressionEnginePack(IPackStreamContext, IEnumerable<(Of <<'(String>)>>))
Creates an archive.
Declaration Syntax
C# Visual Basic Visual C++
public void Pack(
	IPackStreamContext streamContext,
	IEnumerable<string> files
)
Public Sub Pack ( 
	streamContext As IPackStreamContext,
	files As IEnumerable(Of String)
)
public:
void Pack(
	IPackStreamContext^ streamContext, 
	IEnumerable<String^>^ files
)
Parameters
streamContext (IPackStreamContext)
A context interface to handle opening and closing of archive and file streams.
files (IEnumerable<(Of <(<'String>)>)>)
The paths of the files in the archive (not external file paths).
Remarks
The stream context implementation may provide a mapping from the file paths within the archive to the external file paths.
Exceptions
Exception Condition
ArchiveException The archive could not be created.

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