ConfigurationProvider.TryGet(String, String) Metoda

Definice

Pokusí se najít hodnotu se zadaným klíčem.

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

Parametry

key
String

Klíč k vyhledávání.

value
String

Když tato metoda vrátí, obsahuje hodnotu nalezenou v key, pokud je nalezena.

Návraty

true pokud má klíč hodnotu, false jinak.

Implementuje

Platí pro