GetStream Method (fieldName, filePath)

Microsoft Deployment Tools

Deployment Tools Foundation GetStream Method (fieldName, filePath)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerRecordGetStream(String, String)
Reads a record stream field into a file.
Declaration Syntax
C# Visual Basic Visual C++
public void GetStream(
	string fieldName,
	string filePath
)
Public Sub GetStream ( _
	fieldName As String, _
	filePath As String _
)
public:
void GetStream(
	String^ fieldName, 
	String^ filePath
)
Parameters
fieldName (String)
Specifies the field of the Record to get.
filePath (String)
Specifies the path to the file to contain the stream.
Remarks

This method is capable of directly extracting substorages. To do so, first select both the `Name` and `Data` column of the `_Storages` table, then get the stream of the `Data` field. However, substorages may only be extracted from a database that is open in read-only mode.

Exceptions
Exception Condition
ArgumentOutOfRangeException The field name does not match any of the named fields in the Record.
NotSupportedException Attempt to extract a storage from a database open in read-write mode, or from a database without an associated file path

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller) Version: 3.0.0.0 (3.5.1623.0)