Export (0) Print
Expand All

ScriptComponent.VariableDispenser Property

Returns an object that the data flow uses internally to work with variables.

Namespace:  Microsoft.SqlServer.Dts.Pipeline
Assembly:  Microsoft.SqlServer.TxScript (in Microsoft.SqlServer.TxScript.dll)

public IDTSVariableDispenser100 VariableDispenser { get; }

Property Value

Type: Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSVariableDispenser100
An IDTSVariableDispenser100 that the data flow uses internally to work with variables.

The Script component developer does not use the ScriptComponent class directly, but indirectly, by coding the methods and properties of the ScriptMain class, which inherits from ScriptComponent through the UserComponent class.

The developer does not have to use the VariableDispenser property, because the ScriptMain class provides the Variables property for convenient access to both read-only and read/write variables through a single property. The Variables property is a property of the autogenerated UserComponent base class, not of the ScriptComponent class.

Community Additions

ADD
Show:
© 2015 Microsoft