IDTSPipeline100.VariableDispenser Property

Definition

public:
 property Microsoft::SqlServer::Dts::Runtime::Wrapper::Sql2014::IDTSVariableDispenser100 ^ VariableDispenser {  void set(Microsoft::SqlServer::Dts::Runtime::Wrapper::Sql2014::IDTSVariableDispenser100 ^ value); };
[System.Runtime.InteropServices.DispId(119)]
[set: System.Runtime.InteropServices.DispId(119)]
public Microsoft.SqlServer.Dts.Runtime.Wrapper.Sql2014.IDTSVariableDispenser100 VariableDispenser { set; }
member this.VariableDispenser : Microsoft.SqlServer.Dts.Runtime.Wrapper.Sql2014.IDTSVariableDispenser100
Public Property VariableDispenser As IDTSVariableDispenser100

Property Value

IDTSVariableDispenser100

数据流任务的 IDTSVariableDispenser100The IDTSVariableDispenser100 for the data flow task.

Attributes

Remarks

IDTSVariableDispenser100对象用于读取和写入包含数据流任务的包中的变量。The IDTSVariableDispenser100 object is used to read and write variables in the package that contains the data flow task. 在读取或写入变量之前,必须使用以下方法之一来锁定变量: LockForReadLockForWriteLockOneForReadLockOneForWriteBefore reading or writing a variable, the variable must be locked by using one of the following methods: LockForRead, LockForWrite, LockOneForRead, or LockOneForWrite. 变量被分配器锁定后,可通过接口进行访问 IDTSVariables100After the variables are locked by the dispenser, they are accessible through the IDTSVariables100 interface. 由于变量是按名称检索的,因此您必须知道要读取或写入的变量的名称。Because the variables are retrieved by name, you must know the name of the variable you want to read or write. 不可能枚举变量的集合。It is not possible to enumerate the collection of variables.

Applies to