asp.net.ph

SecurityPolicySection Class

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.

SecurityPolicySection Class Members

Collapse   Constructors

Visibility Constructor Parameters
public SecurityPolicySection ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public TrustLevels TrustLevelCollection [ Get ]

Remarks

The SecurityPolicySection class provides a way to programmatically access and modify the securityPolicy section of a configuration file.

Example

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>
See Also

ASP.NET Configuration   <securityPolicy> Section Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 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 asp.net.ph