ChainedConfigurationProvider.TryGet(String, String) Metoda

Definicja

Próbuje uzyskać wartość konfiguracji dla określonego klucza.

public:
 virtual 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
override this.TryGet : string * string -> bool
Public Function TryGet (key As String, ByRef value As String) As Boolean

Parametry

key
String

Klucz.

value
String

Gdy ta metoda zwróci wartość, zawiera wartość.

Zwraca

true jeśli znaleziono wartość określonego klucza; w przeciwnym razie , false.

Implementuje

Dotyczy