且构网

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

使用 C# 在脚本任务中锁定变量

更新时间:2023-12-05 15:00:46

尝试将 bool 转换为 int.

Try converting your bool to an int.

Dts.Variables["User::FileExistsFlg"].Value = Convert.ToInt32(File.Exists(filepath));