Gets a nullable Boolean value that indicates whether any compatibility switches are set, and if so, whether the specified compatibility switch is set.
Assembly: mscorlib (in mscorlib.dll)
- Type: System.String
The compatibility switch to test.
This method tests whether the current application domain reverses breaking changes that were introduced in the .NET Framework 4. The following table provides examples of compatibility switches that can be set to restore the behavior of earlier versions of the .NET Framework.
Code access security (CAS) for the .NET Framework 3.5 is enabled in this application domain. See <NetFx40_LegacySecurityPolicy> Element.
String sorting defaults for the .NET Framework 3.5 are enabled in this application domain. Its success requires sort00001000.dll to be installed.
String sorting defaults for the .NET Framework 4 and Unicode 5.0 are enabled in this application domain. Its success requires sort00060101.dll to be installed.
TimeSpan formatting behavior for the .NET Framework 3.5 is enabled in this application domain.