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