IConfigurationProvider.TryGet(String, String) メソッド

定義

指定されたキーの構成値の取得を試みます。

public:
 bool TryGet(System::String ^ key, [Runtime::InteropServices::Out] System::String ^ % value);
public bool TryGet (string key, out string value);
public bool TryGet (string key, out string? value);
abstract member TryGet : string * string -> bool
Public Function TryGet (key As String, ByRef value As String) As Boolean

パラメーター

key
String

キー。

value
String

このメソッドから制御が戻るときに、 には 値が格納されます。

戻り値

指定されたキーの値が見つかった場合は true。それ以外の場合は、false

適用対象