![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Deployment Tools Foundation
GetStream Method (field)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Record ► GetStream(Int32)
Gets a record stream field.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ | F# |
public Stream GetStream( int field )
Public Function GetStream ( field As Integer ) As Stream
public: Stream^ GetStream( int field )
member GetStream : field : int -> Stream
![](collapse_all.gif)
- field (Int32)
- Specifies the field of the Record to get.
![](collapse_all.gif)
Stream
A Stream that reads the field data.
A Stream that reads the field data.
![](collapse_all.gif)
This method is not capable of reading substorages. To extract a substorage, use GetStream(Int32, String).
Win32 MSI API: MsiRecordReadStream
![](collapse_all.gif)
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The field is less than 0 or greater than the
number of fields in the Record. |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)