PolicyLevel
Represents the security policy levels for the common language runtime. This class cannot be inherited.
using System.Collections;
namespace System.Security.Policy
{
public sealed class PolicyLevel
{
[System.Obsolete("Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted.")]
public IList FullTrustAssemblies {
get {
return null;
}
}
public string Label => null;
public IList NamedPermissionSets => null;
public CodeGroup RootCodeGroup { get; set; }
public string StoreLocation => null;
public PolicyLevelType Type => PolicyLevelType.User;
internal PolicyLevel()
{
}
[System.Obsolete("Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted.")]
public void AddFullTrustAssembly(StrongName sn)
{
}
[System.Obsolete("Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted.")]
public void AddFullTrustAssembly(StrongNameMembershipCondition snMC)
{
}
public void AddNamedPermissionSet(NamedPermissionSet permSet)
{
}
public NamedPermissionSet ChangeNamedPermissionSet(string name, PermissionSet pSet)
{
return null;
}
[System.Obsolete("AppDomain policy levels are obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public static PolicyLevel CreateAppDomainLevel()
{
return null;
}
public void FromXml(SecurityElement e)
{
}
public NamedPermissionSet GetNamedPermissionSet(string name)
{
return null;
}
public void Recover()
{
}
[System.Obsolete("Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted.")]
public void RemoveFullTrustAssembly(StrongName sn)
{
}
[System.Obsolete("Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted.")]
public void RemoveFullTrustAssembly(StrongNameMembershipCondition snMC)
{
}
public NamedPermissionSet RemoveNamedPermissionSet(NamedPermissionSet permSet)
{
return null;
}
public NamedPermissionSet RemoveNamedPermissionSet(string name)
{
return null;
}
public void Reset()
{
}
public PolicyStatement Resolve(Evidence evidence)
{
return null;
}
public CodeGroup ResolveMatchingCodeGroups(Evidence evidence)
{
return null;
}
public SecurityElement ToXml()
{
return null;
}
}
}