SetStream Method (fieldName, stream)

DTF API

Copy image CopyHover image
Deployment Tools Foundation SetStream Method (fieldName, stream)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerRecordSetStream(String, 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(
	string fieldName,
	Stream stream
)
Public Sub SetStream ( 
	fieldName As String,
	stream As Stream
)
public:
void SetStream(
	String^ fieldName, 
	Stream^ stream
)
member SetStream : 
        fieldName : string * 
        stream : Stream -> unit 
Parameters
fieldName (String)
Specifies the field name 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.

Exceptions
Exception Condition
ArgumentOutOfRangeException The field name does not match any of the named fields in the Record.

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)