且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

脚本任务中的对象变量

更新时间:2023-12-05 14:52:10

非常接近,要访问变量的Value,您需要点击该属性

So very close, to access the Value of a variable, you need to hit that property

public void Main()
{
    Variable resultSet = Dts.Variables["User::ZBatch_Order_Export_ResultSet"].Value;

    // do stuff here with resultSet and the webservice

    Dts.TaskResult = (int)ScriptResults.Success;


}