开发者

SSIS: Curious: why is the last parameter in FireInformation method a ref bool?

开发者 https://www.devze.com 2023-01-19 15:17 出处:网络
I\'m currently working on a SSIS package and after the 80th time using FireInformation inside a Script Task, I have to wonder: why would the method require yo开发者_如何转开发u to pass in a ref boolea

I'm currently working on a SSIS package and after the 80th time using FireInformation inside a Script Task, I have to wonder: why would the method require yo开发者_如何转开发u to pass in a ref boolean as its last parameter? The documentation doesn't state anything about how you should respond to the value once the method returns. Am I missing something here?


The run-time engine has the ability to modify the “fireAgain” parameter and prevent the further firing of events. In order to do this, the run-time must have access to modify the variable. It can only do this if the parameter is passed by ref.


It is fireAgain parameter.

Because firing of an event may be expensive, the run-time engine provides a mechanism for suppressing events that you are not interested in. Every event firing method has a FireAgain parameter. If the value of this variable is false, after the method returns, the caller will not fire this event again for the duration of the current execution. Source

0

精彩评论

暂无评论...
验证码 换一张
取 消