asp.net - 什么是Asp.net中的信任?

标签 asp.net medium-trust

什么是Asp.net中的信任?什么时候应该在Asp.net中使用“中等信任度”?

最佳答案

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).


这些是最大的不同,您是否也对次要的细节感兴趣?总体上,信任级别是指允许代码执行的操作。

关于asp.net - 什么是Asp.net中的信任?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2617454/

相关文章:

c# - 将大量 SQL 结果返回到 C# 数组

c# - 单选按钮始终选中的项目显示 False

c# - RadComboBox 展开时间长

c# - 如何判断当前应用是否为Medium Trust

asp.net - 如何在 html 或 asp.net aspx 文件中跳过/插入一半的行高?

c# - 匿名对象内的条件运算符

asp.net - 反射会带来什么风险? (中等信任度)

asp.net - 什么是中等信任级别?

visual-studio-2010 - 有没有办法在 VS2010 中模拟中等信任度