ConfigurationProvider.TryGet(String, String) Méthode

Définition

Tente de trouver une valeur avec la clé spécifiée.

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

Paramètres

key
String

Clé à rechercher.

value
String

Lorsque cette méthode est retournée, contient la valeur trouvée dans key, le cas échéant.

Retours

true si la clé a une valeur, false sinon.

Implémente

S’applique à