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é 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);
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.