asp.net.ph

TrustSection Class

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.

TrustSection Class Members

Collapse   Constructors

Visibility Constructor Parameters
public TrustSection ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public HostSecurityPolicyResolverType String [ Get , Set ]
public LegacyCasModel Boolean [ Get , Set ]
public Level String [ Get , Set ]
public OriginUrl String [ Get , Set ]
public PermissionSetName String [ Get , Set ]
public ProcessRequestInApplicationTrust Boolean [ Get , Set ]

Remarks

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.

Example

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

ASP.NET Configuration   <trust> Section   TrustLevel Class   TrustLevelCollection Class 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