static private IsGacAssembly ( |
||
evidence | ||
return | bool |
// // This method resolves the policy for the specified evidence, but it // ignores the AppDomain level even when one is available in the current policy. // public static PermissionSet ResolveSystemPolicy(Evidence evidence) { if (PolicyManager.IsGacAssembly(evidence)) { return(new PermissionSet(PermissionState.Unrestricted)); } return(polmgr.CodeGroupResolve(evidence, true)); }
public static PermissionSet ResolveSystemPolicy(Evidence evidence) { if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) { throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyExplicit")); } if (PolicyManager.IsGacAssembly(evidence)) { return(new PermissionSet(PermissionState.Unrestricted)); } return(SecurityManager.polmgr.CodeGroupResolve(evidence, true)); }