CompatibilitySwitch<TValue> Class

Definition

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)

Creates a new compatibility switch with the provided name.

CompatibilitySwitch<TValue>(String, TValue)

Creates a new compatibility switch with the provided name and initial value.

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

Applies to