I do not believe that such a security check is from unmanaged to managed.
You can see the security checks counted as they occur if you go to Process Explorer. Find your process, click "Properties", go to the ".NET" tab and select ".NET CLR Security" from the drop-down list.
, , , , . .
[SuppressUnmanagedCodeSecurityAttribute()] --- > , 0.