Langue

ConfigurationProvider.TryGet(String, String) Méthode

Définition

Tente de trouver une valeur avec la clé donnée.

public:
 virtual bool TryGet(System::String ^ key, [Runtime::InteropServices::Out] System::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 si une méthode est trouvée.

Retours

true si key a une valeur ; sinon false.

Implémente

S’applique à