加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

什么是Asp.net中的中等信任?

发布时间:2020-12-15 18:32:35 所属栏目:asp.Net 来源:网络整理
导读:什么是Asp.net中的中等信任?我们什么时候在Asp.net中使用Medium Trust? 解决方法 The most concise description I’ve seen is here: Full trust – your code can do anything that the account running it can do. High trust – same as above except
什么是Asp.net中的中等信任?我们什么时候在Asp.net中使用Medium Trust?

解决方法

The most concise description I’ve seen is here:
  • Full trust – your code can do anything that the account running it can do.
  • High trust – same as above except your code cannot call into unmanaged code. i.e. Win32 APIs,COM interop.
  • Medium trust – same as above except your code cannot see any part of the file system except its application directory.
  • Low trust – same as above except your code cannot make any out-of-process calls. i.e. calls to a database,network,etc.
  • Minimal trust – code is restricted from anything but the most trival processing (calculating algorithms).

那些是很大的区别,你对这个小细节感兴趣吗?信任级别总体上指代码允许做什么。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读