Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道在security.config.NET 文件中定义了可用的区域以及适用于每个区域的权限:“FullTrust”、“Internet”等。
security.config
假设我在我的应用程序中引用了一个 DLL,该 DLL 位于\\someserver\somedir\library.dll. 如何找出 .NET 认为它属于哪个区域?
\\someserver\somedir\library.dll
这是TrustedZone, RestrictedZone,Internet还是Intranet?
TrustedZone
RestrictedZone
Internet
Intranet
哪些权限适用?
我过去用它来获取区域
using System.Security.Policy; ... Assembly myAssembly = ...; var zone = myAssembly.Evidence.GetHostEvidence<Zone>(); Console.WriteLine(zone.SecurityZone);