title: C++/CLI: CA2123: Requires SecurityCriticalAttribute?
body: <p>I am a little lost on erros like that:</p>
  
  <blockquote>
    <p>Warning   7   CA2123 : Microsoft.Security
    : Add the following security attribute
    to
    'RithmicConnector::Connect(String^)'
    in order to match a LinkDemand on base
    method 'IConnector::Connect(String^)':
    'SecurityCriticalAttribute'.  c:\work\nettecture\tradex\source\tradex.connectivity.rithmic\rithmicconnector.cpp   52  Tradex.Connectivity.Rithmic</p>
  </blockquote>
  
  <p>Where do I add the SecurityCriticalAttribute?</p>
  
  <p>I tried on the header file - but the error does not disappear. I have one of those pretty much on every exposed method of a (managed C++) interface DLL.</p>
  
  <p>And I want CA to run through.</p>
  
  <p>How do I fix those?</p>
  
  <p>Regards</p>