SetStream Method (field, stream)

DTF API

Copy image CopyHover image
Deployment Tools Foundation SetStream Method (field, stream)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerRecordSetStream(Int32, Stream)
Sets a record stream field from a Stream object. Stream data cannot be inserted into temporary fields.
Declaration Syntax
C# Visual Basic Visual C++ F#
public void SetStream(
	int field,
	Stream stream
)
Public Sub SetStream ( 
	field As Integer,
	stream As Stream
)
public:
void SetStream(
	int field, 
	Stream^ stream
)
member SetStream : 
        field : int * 
        stream : Stream -> unit 
Parameters
field (Int32)
Specifies the field of the Record to set.
stream (Stream)
Specifies the stream data.
Remarks

The stream persists if the Record is inserted into the Database and the Database is committed.

Win32 MSI API: MsiRecordsetStream

Exceptions
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)