OpenFileWriteStream Method (path, fileSize, lastWriteTime)

DTF API

Copy image CopyHover image
Deployment Tools Foundation OpenFileWriteStream Method (path, fileSize, lastWriteTime)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.CompressionBasicUnpackStreamContextOpenFileWriteStream(String, Int64, DateTime)
Opens a stream for writing extracted file bytes. The returned stream is a MemoryStream instance, so the file is extracted straight into memory.
Declaration Syntax
C# Visual Basic Visual C++ F#
public Stream OpenFileWriteStream(
	string path,
	long fileSize,
	DateTime lastWriteTime
)
Public Function OpenFileWriteStream ( 
	path As String,
	fileSize As Long,
	lastWriteTime As DateTime
) As Stream
public:
virtual Stream^ OpenFileWriteStream(
	String^ path, 
	long long fileSize, 
	DateTime lastWriteTime
) sealed
abstract OpenFileWriteStream : 
        path : string * 
        fileSize : int64 * 
        lastWriteTime : DateTime -> Stream 
override OpenFileWriteStream : 
        path : string * 
        fileSize : int64 * 
        lastWriteTime : DateTime -> Stream 
Parameters
path (String)
Path of the file within the archive.
fileSize (Int64)
The uncompressed size of the file to be extracted.
lastWriteTime (DateTime)
The last write time of the file.
Return Value
Stream
A stream where extracted file bytes are to be written.

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