次の方法で共有


CompatibilitySwitch<TValue> コンストラクター

定義

オーバーロード

CompatibilitySwitch<TValue>(String)

指定された名前の新しい互換性スイッチを作成します。

CompatibilitySwitch<TValue>(String, TValue)

指定された名前と初期値を使用して、新しい互換性スイッチを作成します。

CompatibilitySwitch<TValue>(String)

ソース:
CompatibilitySwitch.cs
ソース:
CompatibilitySwitch.cs

指定された名前の新しい互換性スイッチを作成します。

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)

パラメーター

name
String

互換性スイッチ名。 名前は、オプションの種類のプロパティ名と一致する必要があります。

適用対象

CompatibilitySwitch<TValue>(String, TValue)

ソース:
CompatibilitySwitch.cs
ソース:
CompatibilitySwitch.cs

指定された名前と初期値を使用して、新しい互換性スイッチを作成します。

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)

パラメーター

name
String

互換性スイッチ名。 名前は、オプションの種類のプロパティ名と一致する必要があります。

initialValue
TValue

スイッチに割り当てる初期値。

適用対象