title: How to access ssis package variables inside script component
body: <p>How can I access variables inside my C# code which I've used in Data Flow -> Script Component - > My c# Script with my SSIS package?</p>
  
  <p>I have tried with which is also not working</p>
  
  <pre><code>IDTSVariables100 varCollection = null;
  this.VariableDispenser.LockForRead("User::FilePath");
  string XlsFile;
  
  XlsFile = varCollection["User::FilePath"].Value.ToString();
  </code></pre>