OpenRead Method (fileName)

Microsoft Deployment Tools

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++
public Stream OpenRead(
	string fileName
)
Public Function OpenRead ( _
	fileName As String _
) As Stream
public:
Stream^ OpenRead(
	String^ fileName
)
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
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) Version: 3.0.0.0 (3.5.1623.0)