Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
以编程方式获取当前ASP.NET信任级别_Asp.net - Fatal编程技术网

以编程方式获取当前ASP.NET信任级别

以编程方式获取当前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;

是否有获取当前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;
using System.Web.Configuration;

...

var trust = WebConfigurationManager.GetSection("system.web/trust") as TrustSection;
return trust.Level;