System.Security.Policy.PolicyLevel.CreateAppDomainLevel Method

Creates a new policy level for use at the application domain policy level.

Syntax

public static PolicyLevel CreateAppDomainLevel ()

Returns

The newly created System.Security.Policy.PolicyLevel.

Remarks

This method creates a new System.Security.Policy.PolicyLevel with the PolicyLevel.Label "AppDomain". The new System.Security.Policy.PolicyLevel will initially contain the same System.Security.NamedPermissionSet objects as in the default computer policy, and will have a single root code group that grants FullTrust to all code.

Requirements

Namespace: System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0