开发者

What's the easiest way to determine if a method call will run under Medium Trust?

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 method开发者_运维技巧s. Thanks!


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
{


You need to set trust level medium in your web.config file

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜