CloseFileReadStream Method (path, stream)

DTF API

Copy image CopyHover image
Deployment Tools Foundation CloseFileReadStream Method (path, stream)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.CompressionIPackStreamContextCloseFileReadStream(String, Stream)
Closes a stream that has been used to read a file.
Declaration Syntax
C# Visual Basic Visual C++ F#
void CloseFileReadStream(
	string path,
	Stream stream
)
Sub CloseFileReadStream ( 
	path As String,
	stream As Stream
)
void CloseFileReadStream(
	String^ path, 
	Stream^ stream
)
abstract CloseFileReadStream : 
        path : string * 
        stream : Stream -> unit 
Parameters
path (String)
The path of the file within the archive; the same as the path provided when the stream was opened.
stream (Stream)
A stream that was previously returned by OpenFileReadStream(String, FileAttributes%, DateTime%) and is now ready to be closed.

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