什么是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/