Share via


CompatibilitySwitch<TValue> Constructors

Definition

Overloads

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.

CompatibilitySwitch<TValue>(String)

Source:
CompatibilitySwitch.cs
Source:
CompatibilitySwitch.cs

Creates a new compatibility switch with the provided name.

public:
 CompatibilitySwitch(System::String ^ name);
public CompatibilitySwitch (string name);
new Microsoft.AspNetCore.Mvc.Infrastructure.CompatibilitySwitch<'Value (requires 'Value : struct)> : string -> Microsoft.AspNetCore.Mvc.Infrastructure.CompatibilitySwitch<'Value (requires 'Value : struct)>
Public Sub New (name As String)

Parameters

name
String

The compatibility switch name. The name must match a property name on an options type.

Applies to

CompatibilitySwitch<TValue>(String, TValue)

Source:
CompatibilitySwitch.cs
Source:
CompatibilitySwitch.cs

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

public:
 CompatibilitySwitch(System::String ^ name, TValue initialValue);
public CompatibilitySwitch (string name, TValue initialValue);
new Microsoft.AspNetCore.Mvc.Infrastructure.CompatibilitySwitch<'Value (requires 'Value : struct)> : string * 'Value -> Microsoft.AspNetCore.Mvc.Infrastructure.CompatibilitySwitch<'Value (requires 'Value : struct)>
Public Sub New (name As String, initialValue As TValue)

Parameters

name
String

The compatibility switch name. The name must match a property name on an options type.

initialValue
TValue

The initial value to assign to the switch.

Applies to