ArchiveFileStreamContext Constructor (archiveFile, directory, files)

Microsoft Deployment Tools

Deployment Tools Foundation ArchiveFileStreamContext Constructor (archiveFile, directory, files)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.CompressionArchiveFileStreamContextArchiveFileStreamContext(String, String, IDictionary<(Of <(String, String>)>))
Creates a new ArchiveFileStreamContext with a archive file, default directory and mapping from internal to external file paths.
Declaration Syntax
C# Visual Basic Visual C++
public ArchiveFileStreamContext(
	string archiveFile,
	string directory,
	IDictionary<string, string> files
)
Public Sub New ( _
	archiveFile As String, _
	directory As String, _
	files As IDictionary(Of String, String) _
)
public:
ArchiveFileStreamContext(
	String^ archiveFile, 
	String^ directory, 
	IDictionary<String^, String^>^ files
)
Parameters
archiveFile (String)
The path to a archive file that will be created or extracted.
directory (String)
The default root directory where files will be located, optional.
files (IDictionary<(Of <(String, String>)>))
A mapping from internal file paths to external file paths, optional.
Remarks
If the mapping is not null and a file is not included in the mapping, the file will be skipped.

If the external path in the mapping is a simple file name or relative file path, it will be concatenated onto the default directory, if one was specified.

For more about how the default directory and files mapping are used, see OpenFileReadStream(String, FileAttributes%, DateTime%) and OpenFileWriteStream(String, Int64, DateTime).

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