System.AppDomain.SetAppDomainPolicy Method

Establishes the security policy level for this application domain.

Syntax

[System.Obsolete("AppDomain policy levels are obsolete")]
public void SetAppDomainPolicy (System.Security.Policy.PolicyLevel domainPolicy)

Parameters

domainPolicy
The security policy level.

Remarks

Call this method before an assembly is loaded into the AppDomain in order for the security policy to have effect.

Requirements

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