System.Security.Policy.PolicyLevel.AddFullTrustAssembly Method

Adds a System.Security.Policy.StrongNameMembershipCondition corresponding to the specified System.Security.Policy.StrongName 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 (StrongName sn)

Parameters

sn
The System.Security.Policy.StrongName used to create 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(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