System.Security.Policy.PolicyLevel.RemoveFullTrustAssembly Method

Removes an assembly with the specified System.Security.Policy.StrongNameMembershipCondition 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 (StrongNameMembershipCondition snMC)

Parameters

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

Remarks

The PolicyLevel.RemoveFullTrustAssembly(StrongNameMembershipCondition) 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