以编程方式获取当前ASP.NET信任级别
是否有获取当前ASP.NET信任级别的API?来源:以编程方式获取当前ASP.NET信任级别,asp.net,Asp.net,是否有获取当前ASP.NET信任级别的API?来源: 以下代码使用官方配置API以编程方式获取当前ASP.NET信任级别: using System.Web; using System.Web.Configuration; ... var trust = WebConfigurationManager.GetSection("system.web/trust") as TrustSection; return trust.Level; 很明显,对不起。 using System.Web;
以下代码使用官方配置API以编程方式获取当前ASP.NET信任级别:
using System.Web;
using System.Web.Configuration;
...
var trust = WebConfigurationManager.GetSection("system.web/trust") as TrustSection;
return trust.Level;
很明显,对不起。
using System.Web;
using System.Web.Configuration;
...
var trust = WebConfigurationManager.GetSection("system.web/trust") as TrustSection;
return trust.Level;