Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 you 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?

like image 604
enriquein Avatar asked Oct 07 '10 14:10

enriquein


2 Answers

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.

like image 138
GBGOLC Avatar answered Oct 11 '22 16:10

GBGOLC


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

like image 39
Ilya Berdichevsky Avatar answered Oct 11 '22 15:10

Ilya Berdichevsky