ArchiveFileStreamContext Constructor (archiveFile, directory, files)

DTF API

Copy image CopyHover image
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++ F#
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
)
new : 
        archiveFile : string * 
        directory : string * 
        files : IDictionary<string, string> -> ArchiveFileStreamContext
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.dll) Version: 3.0.0.0 (3.11.1.2318)