OpenRead Method (fileName)

DTF API

Copy image CopyHover image
Deployment Tools Foundation OpenRead Method (fileName)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.CompressionArchiveInfoOpenRead(String)
Opens a file inside the archive for reading without actually extracting the file to disk.
Declaration Syntax
C# Visual Basic Visual C++ F#
public Stream OpenRead(
	string fileName
)
Public Function OpenRead ( 
	fileName As String
) As Stream
public:
Stream^ OpenRead(
	String^ fileName
)
member OpenRead : 
        fileName : string -> Stream 
Parameters
fileName (String)
The name of the file in the archive. Also includes the internal path of the file, if any. File name matching is case-insensitive.
Return Value
Stream
A stream for reading directly from the packed file. Like any stream this should be closed/disposed as soon as it is no longer needed.

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