PipelineComponent::VariableDispenser Property

 

Gets the IDTSVariableDispenser100 of the data flow component.

This API is not CLS-compliant.

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

public:
[CLSCompliantAttribute(false)]
property IDTSVariableDispenser100^ VariableDispenser {
	IDTSVariableDispenser100^ get();
}

Property Value

Type: Microsoft.SqlServer.Dts.Runtime.Wrapper::IDTSVariableDispenser100^

The IDTSVariableDispenser100 object provided to the component.

The VariableDispenser is used to read and write variables in the package that contains the component. Before reading or writing a variable, it must be locked using one of the following methods; LockForRead, LockForWrite, LockOneForRead, or LockOneForWrite. After the variables are locked using the dispenser, they are available through the IDTSVariables100 interface.

The following example demonstrates how to use the VariableDispenser to lock a single variable, and multiple variables.

No code example is currently available or this language may not be supported.
Return to top
Show: