System.Web 2.0.0.0 System.Configuration.ConfigurationSection

The class lets you programmatically access and modify the configuration file <trust> section. The <trust> section configures the code-access-security permissions set that is used to run a particular application. This section can be declared at the machine, site, and application levels.

Configures the code-access security level that is applied to an application. This class cannot be inherited.

- Constructor

  The constructor is not intended to be used directly from your code. It is called by the ASP.NET configuration system. You obtain an instance of the class by using the method.

  The following table shows the default settings that are used for the constructor.

  Setting

  Default value

  Full

  ""

  Initializes a new instance of the class using default settings.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("level", DefaultValue="Full", Options=System.Configuration.ConfigurationPropertyOptions.IsRequired)
  System.Configuration.StringValidator(MinLength=1)
  System.String To be added.

  The property specifies the security level under which the application will be run. The default is "Full".

  There are five available trust levels:

  Full

  High

  Medium

  Low

  Minimal

  The named levels correspond to the security levels that are defined in the <trustLevel> element for <securityPolicy>.

  Gets or sets the name of the security level under which the application will run.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("originUrl", DefaultValue="")
  System.String To be added.

  The property specifies the URL of origin for an application. If present, this can be used for some permissions, such as those associated with the class. This enables you to specify a single URL that is used to create permission through a instance. This permission then grants ASP.NET code that has partial trust the right to make HTTP calls (for example, a Web service call) to that URL. The value must be a well-formed HTTP URL.

  Specifies the URL of origin for an application.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("processRequestInApplicationTrust", DefaultValue="True")
  System.Boolean To be added. To be added.

  Gets or set a value that indicates whether page requests are automatically restricted to the permissions that are configured in the trust policy file that is applied to the ASP.NET application.

  2.0.0.0
- Property
  System.Configuration.ConfigurationPropertyCollection To be added. To be added. To be added. 2.0.0.0