System.Web.Configuration Namespace
.NET Framework version 2.0
Defines configuration settings that are used to support the security infrastructure of a Web application. This class cannot be inherited.
The SecurityPolicySection class provides a way to programmatically access and modify the securityPolicy section of a configuration file.
This example demonstrates how to specify values declaratively within the securityPolicy section, which can also be accessed as members of the SecurityPolicySection class.
The following configuration file example shows how to specify values declaratively for the securityPolicy section.
<system.web>
<securityPolicy>
<trustLevel name = "Full" policyFile = "internal" />
<trustLevel name = "High" policyFile = "web_hightrust.config" />
<trustLevel name = "Medium" policyFile = "web_mediumtrust.config" />
<trustLevel name = "Low" policyFile = "web_lowtrust.config" />
<trustLevel name = "Minimal" policyFile = "web_minimaltrust.config" />
</securityPolicy>
</system.web>
ASP.NET Configuration <securityPolicy> Section