48 references to IsLegacyCasPolicyEnabled
mscorlib (48)
system\activator.cs (5)
315if (securityInfo != null && !AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 381if (securityInfo != null && !AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 433Contract.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled || securityInfo == null); 489if (securityAttributes != null && !AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 560if (securityAttributes != null && !AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled)
system\appdomain.cs (13)
943if (appTrust == null && !IsLegacyCasPolicyEnabled) { 1012if (IsLegacyCasPolicyEnabled) 1688if (securityAttributes != null && !IsLegacyCasPolicyEnabled) 1746Contract.Assert(IsLegacyCasPolicyEnabled || securityAttributes == null); 1775if (securityAttributes != null && !IsLegacyCasPolicyEnabled) 1832Contract.Assert(IsLegacyCasPolicyEnabled || securityAttributes == null); 1898if (securityEvidence != null && !IsLegacyCasPolicyEnabled) 1958if (assemblySecurity != null && !IsLegacyCasPolicyEnabled) 1994if (assemblySecurity != null && !IsLegacyCasPolicyEnabled) 2049if (assemblySecurity != null && !IsLegacyCasPolicyEnabled) 2079if (assemblySecurity != null && !IsLegacyCasPolicyEnabled) 2611if (!IsLegacyCasPolicyEnabled) 3364if (creationEvidence != null && !CurrentDomain.IsLegacyCasPolicyEnabled)
system\reflection\assembly.cs (5)
553if (securityEvidence != null && !AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 606if (securityEvidence != null && !AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 1702if (securityEvidence != null && !AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 1831if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 2014if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled)
system\reflection\emit\assemblybuilder.cs (1)
560if (evidence != null && !AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled)
system\security\codeaccesssecurityengine.cs (3)
644if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 716if (CompatibilitySwitches.IsNetFx40LegacySecurityPolicy || AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 733Contract.Assert(!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled); // This API does not do CAS policy resolution
system\security\framesecuritydescriptor.cs (1)
155BCLDebug.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled, "Deny is only valid in legacy CAS mode");
system\security\hostsecuritymanager.cs (2)
66if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 179else if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled)
system\security\policy\assemblyevidencefactory.cs (1)
131Contract.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled);
system\security\policy\evidence.cs (1)
257if (AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled)
system\security\policymanager.cs (2)
82BCLDebug.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled, "We're about to apply policy in a policy disabled app"); 91Contract.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled);
system\security\securitymanager.cs (13)
171if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 245if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 261if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 273if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 290if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 354if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 371if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 383if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 396if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled) 414Contract.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled); 437Contract.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled); 502BCLDebug.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled, "Evaluating assembly level declarative security without legacy CAS policy enabled"); 513BCLDebug.Assert(AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled, "Evaluating assembly level declarative security without legacy CAS policy enabled");
system\security\securityruntime.cs (1)
181if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled)