TrustSection Class
.NET Framework 3.0
Configures the code-access security level that is applied to an application. This class cannot be inherited.
Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The TrustSection class provides a way to 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.
This section provides two code examples. The first demonstrates how to declaratively specify values for several properties of the TrustSection class. The second demonstrates how to use the TrustSection type.
The following configuration file example shows how to declaratively specify values for several properties of the TrustSection class.
<system.web> <trust level="Full" originUrl=""/> </system.web>
The following code example demonstrates how to use the TrustSection type.
System.Object
System.Configuration.ConfigurationElement
System.Configuration.ConfigurationSection
System.Web.Configuration.TrustSection
System.Configuration.ConfigurationElement
System.Configuration.ConfigurationSection
System.Web.Configuration.TrustSection
Community Additions
ADD
Show: