Lenguaje

ConfigurationProvider.TryGet(String, String) Método

Definición

Intenta encontrar un valor con la clave especificada.

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

Parámetros

key
String

Clave que se va a buscar.

value
String

Cuando este método devuelve, contiene el valor si se encuentra uno.

Devoluciones

true es si key tiene un valor; de lo contrario false, es .

Implementaciones

Se aplica a