System.Security.Policy.PolicyLevel.AddFullTrustAssembly Method

Adds the specified System.Security.Policy.StrongNameMembershipCondition to the list of System.Security.Policy.StrongNameMembershipCondition objects used to determine whether an assembly is a member of the group of assemblies that should not be evaluated.

Syntax

[System.Obsolete("All GACed assemblies are now fully trusted and all permissions now succeed on fully trusted code.")]
public void AddFullTrustAssembly (StrongNameMembershipCondition snMC)

Parameters

snMC
The System.Security.Policy.StrongNameMembershipCondition to add to the list of System.Security.Policy.StrongNameMembershipCondition objects used to determine whether an assembly is a member of the group of assemblies that should not be evaluated.

Remarks

The PolicyLevel.AddFullTrustAssembly(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