OpenFileWriteStream Method (path, fileSize, lastWriteTime)

Microsoft Deployment Tools

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
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) Version: 3.0.0.0 (3.5.1623.0)