detect if .Net security is disabled

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




hi,
Is there a way to detect if code access security is disabled (using
caspol -security off for example)
I know that in COM+ you can detect if role-based security is disabled
using the ContextUtil.IsSecurityEnabled Property. I was wondering if
something similar can be done to detect if code access security is off.

thanks


*** Sent via Developersdex http://www.developersdex.com ***
.



Relevant Pages