Pack Method (streamContext, files, maxArchiveSize)

Microsoft Deployment Tools

Deployment Tools Foundation Pack Method (streamContext, files, maxArchiveSize)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.CompressionCompressionEnginePack(IPackStreamContext, IEnumerable<(Of <(String>)>), Int64)
Creates an archive or chain of archives.
Declaration Syntax
C# Visual Basic Visual C++
public abstract void Pack(
	IPackStreamContext streamContext,
	IEnumerable<string> files,
	long maxArchiveSize
)
Public MustOverride 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
) abstract
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).
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 (Module: Microsoft.Deployment.Compression) Version: 3.0.0.0 (3.5.1623.0)