System.Web.Configuration Namespace
.NET Framework version 2.0
Configures the code-access security level that is applied to an application. This class cannot be inherited.
The TrustSection class provides a way to programmatically access and modify the trust section of a configuration file.
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>
ASP.NET Configuration <trust> Section TrustLevel Class TrustLevelCollection Class