CompatibilitySwitch<TValue> Class 
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Infrastructure supporting the implementation of CompatibilityVersion. This is an implementation of ICompatibilitySwitch suitable for use with the IOptions<TOptions> pattern. This is framework infrastructure and should not be used by application code.
generic <typename TValue>
 where TValue : value classpublic ref class CompatibilitySwitch : Microsoft::AspNetCore::Mvc::Infrastructure::ICompatibilitySwitch
	public class CompatibilitySwitch<TValue> : Microsoft.AspNetCore.Mvc.Infrastructure.ICompatibilitySwitch where TValue : struct
	type CompatibilitySwitch<'Value (requires 'Value : struct)> = class
    interface ICompatibilitySwitch
	Public Class CompatibilitySwitch(Of TValue)
Implements ICompatibilitySwitch
    Type Parameters
- TValue
 
The type of value associated with the compatibility switch.
- Inheritance
 - 
				CompatibilitySwitch<TValue>
 
- Implements
 
Constructors
| CompatibilitySwitch<TValue>(String, TValue) | 
		 Creates a new compatibility switch with the provided name and initial value.  | 
        	
| CompatibilitySwitch<TValue>(String) | 
		 Creates a new compatibility switch with the provided name.  | 
        	
Properties
| IsValueSet | 
		 Gets a value indicating whether the Value property has been set.  | 
        	
| Name | 
		 Gets the name of the compatibility switch.  | 
        	
| Value | 
		 Gets or set the value associated with the compatibility switch.  | 
        	
Explicit Interface Implementations
| ICompatibilitySwitch.Value |