ChainedConfigurationProvider.TryGet(String, String) Method

Definition

Tries to get a configuration value for the specified key.

C#
public bool TryGet(string key, out string? value);

Parameters

key
String

The key.

value
String

When this method returns, contains the value.

Returns

true if a value for the specified key was found, otherwise false.

Implements

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)