System.Security.Policy.PolicyLevel.RemoveFullTrustAssembly Method

Removes an assembly with the specified System.Security.Policy.StrongName from the list of assemblies the policy level uses to evaluate policy.

Syntax

[System.Obsolete("All GACed assemblies are now fully trusted and all permissions now succeed on fully trusted code.")]
public void RemoveFullTrustAssembly (StrongName sn)

Parameters

sn
The System.Security.Policy.StrongName of the assembly to remove from the list of assemblies used to evaluate policy.

Remarks

The PolicyLevel.RemoveFullTrustAssembly(StrongName) method is not supported in version 2.0 or later of the .NET Framework because the list of full trust assemblies is not used in those versions.

Requirements

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