CompatibilitySwitch Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Includes methods that are used by the common language runtime to gather configuration and compatibility information.

System.Object
  System.Runtime.Versioning.CompatibilitySwitch

Namespace:  System.Runtime.Versioning
Assembly:  mscorlib (in mscorlib.dll)

public static class CompatibilitySwitch

The CompatibilitySwitch type exposes the following members.

  NameDescription
Public methodStatic memberGetValueInfrastructure. Gets the value of a compatibility switch.
Public methodStatic memberIsEnabledInfrastructure. Determines whether a specified compatibility switch is enabled.
Top

.NET Framework

Supported in: 4.6, 4.5.2

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: