Pack Method (streamContext, files, maxArchiveSize)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation Pack Method (streamContext, files, maxArchiveSize)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.Compression.ZipZipEnginePack(IPackStreamContext, IEnumerable<(Of <<'(String>)>>), Int64)
Creates a zip archive or chain of zip archives.
Declaration Syntax
C# Visual Basic Visual C++
public override void Pack(
	IPackStreamContext streamContext,
	IEnumerable<string> files,
	long maxArchiveSize
)
Public Overrides Sub Pack ( 
	streamContext As IPackStreamContext,
	files As IEnumerable(Of String),
	maxArchiveSize As Long
)
public:
virtual void Pack(
	IPackStreamContext^ streamContext, 
	IEnumerable<String^>^ files, 
	long long maxArchiveSize
) override
Parameters
streamContext (IPackStreamContext)
A context interface to handle opening and closing of archive and file streams.
files (IEnumerable<(Of <(<'String>)>)>)
An array of file lists. Each list is compressed into one stream in the archive.
maxArchiveSize (Int64)
The maximum number of bytes for one archive before the contents are chained to the next archive, or zero for unlimited archive size.
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.Zip (Module: Microsoft.Deployment.Compression.Zip.dll) Version: 3.0.0.0 (3.9.1006.0)