ConfigurationProvider.TryGet(String, String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.