ChainedConfigurationProvider.TryGet(String, String) Méthode

Définition

Essaie d’obtenir une valeur de configuration pour la clé spécifiée.

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

Paramètres

key
String

Clé.

value
String

Lorsque cette méthode retourne, contient la valeur.

Retours

true si une valeur a été trouvée pour la clé spécifiée ; sinon, false.

Implémente

S’applique à