System.Security.PolicyManager.IsGacAssembly C# (CSharp) Method

IsGacAssembly() static private method

static private IsGacAssembly ( Evidence evidence ) : bool
evidence System.Security.Policy.Evidence
return bool
        internal static bool IsGacAssembly (Evidence evidence) {
            return new GacMembershipCondition().Check(evidence);
        }

Usage Example

        //
        // 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));
        }
All Usage Examples Of System.Security.PolicyManager::IsGacAssembly