Is there a quick way to determine if a method call will run under medium trust? In this scenario, I'm specifically wanting to know about trust-level requirements for .NET Framework methods. Thanks!
views:
39answers:
2@adeel, how does that determine if a method/class will run in medium trust, exactly?
Sky Sanders
2010-03-02 18:26:45
+1
A:
Check MSDN or use Reflector to check attributes.
This is just an example of the type of attribute you will be looking for.
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public static class ProfileManager
{
Sky Sanders
2010-03-02 18:22:55