SecurityPolicySection Class [IIS 7 and higher]

Defines a collection of mappings between security policy files and their trust-level names.

Syntax

class SecurityPolicySection : ConfigurationSectionWithCollection

Methods

The following table lists the methods exposed by the SecurityPolicySection class.

Name

Description

Add

(Inherited from ConfigurationSectionWithCollection.)

Clear

(Inherited from ConfigurationSectionWithCollection.)

Get

(Inherited from ConfigurationSectionWithCollection.)

GetAllowDefinition

(Inherited from ConfigurationSection.)

GetAllowLocation

(Inherited from ConfigurationSection.)

Remove

(Inherited from ConfigurationSectionWithCollection.)

RevertToParent

(Inherited from ConfigurationSection.)

SetAllowDefinition

(Inherited from ConfigurationSection.)

SetAllowLocation

(Inherited from ConfigurationSection.)

Properties

The following table lists the properties exposed by the SecurityPolicySection class.

Name

Description

Location

(Inherited from ConfigurationSection.) A key property.

Path

(Inherited from ConfigurationSection.) A key property.

SectionInformation

(Inherited from ConfigurationSection.)

SecurityPolicy

An array of read/write TrustLevel values that map security policy files to named security trust levels. You can apply the security policy to an ASP.NET application by specifying the trust-level name in the Level property of the TrustSection class.

Subclasses

This class contains no subclasses.

Remarks

This class is valid only in a site-level configuration (Web.config) file.

For information about ASP.NET and policy files, see ASP.NET Trust Levels and Policy Files and Administering Security Policy.

Inheritance Hierarchy

ConfigurationSection

   ConfigurationSectionWithCollection

      SecurityPolicySection

Requirements

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

See Also

Reference

ConfigurationSectionWithCollection Class [IIS 7 and higher]

TrustLevel Class [IIS 7 and higher]

TrustSection Class [IIS 7 and higher]

Other Resources

ASP.NET Trust Levels and Policy Files

Administering Security Policy