Search code examples
.netssisclass-design

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?


Solution

  • 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.