Deployment Tools Foundation
GetStream Method (fieldName, filePath)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Record ► GetStream(String, String)
Reads a record stream field into a file.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public void GetStream( string fieldName, string filePath )
Public Sub GetStream ( fieldName As String, filePath As String )
public: void GetStream( String^ fieldName, String^ filePath )
member GetStream : fieldName : string * filePath : string -> unit
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.dll) Version: 3.0.0.0 (3.11.1.2318)