OpenFileWriteStream Method (path, fileSize, lastWriteTime)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation OpenFileWriteStream Method (path, fileSize, lastWriteTime)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.CompressionIUnpackStreamContextOpenFileWriteStream(String, Int64, DateTime)
Opens a stream for writing extracted file bytes.
Declaration Syntax
C# Visual Basic Visual C++
Stream OpenFileWriteStream(
	string path,
	long fileSize,
	DateTime lastWriteTime
)
Function OpenFileWriteStream ( 
	path As String,
	fileSize As Long,
	lastWriteTime As DateTime
) As Stream
Stream^ OpenFileWriteStream(
	String^ path, 
	long long fileSize, 
	DateTime lastWriteTime
)
Parameters
path (String)
The path of the file within the archive. This is often, but not necessarily, the same as the relative path of the file outside the archive.
fileSize (Int64)
The uncompressed size of the file to be extracted.
lastWriteTime (DateTime)
The last write time of the file to be extracted.
Return Value
Stream
A stream where extracted file bytes are to be written, or null to skip extraction of the file and continue to the next file.
Remarks
The implementor may use the path, size and date information to dynamically decide whether or not the file should be extracted.

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