title: How to prevent path from being attached if condition not required? SSIS custom component
body: <p>In my custom data flow component, I have overriden the OnOutputPathAttached method. I want outputs to be attached under certain conditions. ie:</p>
  
  <pre><code>    public override void OnOutputPathAttached(int outputID)
      {
              if (/*condition*/)
              {
                  //do some processing
                  base.OnOutputPathAttached(outputID);
              }
              else
              {
                  System.Windows.Forms.MessageBox.Show("Error message");
                 //CODE TO STOP OUTPUT FROM BEING ATTACHED???
              }
      }
  </code></pre>
  
  <p>What should I put so that the output isn't attached? For now it shows the error message but still attaches the output.</p>