| ||||||||||||||||||
SecurityPolicySection ClassSystem.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.
|
||||||||||||||||||
| Visibility | Name | Value Type | Accessibility |
|---|---|---|---|
| public | TrustLevels | TrustLevelCollection | [ Get ] |
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
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme