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

I am currently working on the SSIS package, and after 80, using FireInformation inside the Script task, I need to wonder: why would you require that this method be passed in ref-boolean as the last parameter? The documentation says nothing about how to respond to a value after a method returns. Did I miss something?

+6
class-design ssis
source share
2 answers

The runtime mechanism can modify the "fireAgain" parameter and prevent further firing from events. For this, the runtime must have access to change the variable. This can only be done if the parameter is passed by reference.

+3
source share

This is the fireAgain parameter.

Since triggering an event can be expensive, the runtime mechanism provides a mechanism to suppress events that you are not interested in. Each event trigger method has a FireAgain parameter. If the value of this variable is false, then after the method returns, the caller will not fire this event again for the duration of the current execution. A source

+1
source share

All Articles