IConfigurationProvider.TryGet(String, String) Method

Definition

Tries to get the value for the specified key.

public bool TryGet(string key, out string? value);
abstract member TryGet : string * string -> bool
Public Function TryGet (key As String, ByRef value As String) As Boolean

Parameters

key
String

The key.

value
String

The associated value.

Returns

true if the key was found; false otherwise.

Applies to